Spring Tutorial


Spring Introduction


(1)Spring IOC
IoC & Dependency Injection Introduction
Types of containers
BeanFactory Vs ApplicationContext
Lazy loading & Aggressive Loading

4.     Setter Injection
a.      Primitive Data Injection    -->  int, String.
b.     Secondary Data Injection --> Objects
d.     Array Injection

c.      Collections Injection
7.     Dependency-on
8.     Bean Scopes
·         Programmatic Approach
·         XML approach
·         @Annotations approach
a.    byName
b.    byType
c.    constructor
d.    AutoDetect
·         @component
·         @Repository,@Service
·         @Controller

13. Static variable DI
14. Singleton DI
15. Lookup Method Dependency injection
16. Method Replacer
17. INTERNATIONALIZAION (I18N)
18. Event Handlers

1.     JdbcTemplate
                                      i.      Normal Insert
                                    ii.      PreparedStatement Insertion


1.    Spring MVC Flow
2.    Handler Mappings
9.    @InitBinder Example
10. MVC- Hibernate Simple Project 



References:

For More In-Depth on Spring look at

·         www.beingjavaguys.com

·         www.howtodoinjava.com


=====================================================
COMMON ERRORS
=================================================

1. In MVC if the ViewPage is pointing to URL.Jsp

Ex:  addActor.action ---> addActor.jsp 
USE : import org.springframework.web.servlet.ModelAndView;
Remove:import org.springframework.web.portlet.ModelAndView;

2.org.hibernate.MappingException: Unknown entity: bo.ActorBo

                                      (AND)

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.hibernate.MappingException: Unknown entity: bo.ActorBo

make sure adding bo in hibernate.cfg.xml

<mapping class="bo.ActorBo"/>



1 Comments

Thank You