This Project Work(Contact App) video is about SPRING MVC APP CONFIGURATION USING MAVEN. Here are some set of points covered :
Spring Root Configuration for Business Layer Beans like Service, DAO, DataSource etc...
Spring Web MVC Configuration for MVC layer beans like Controller, Resolver, Resource Handler, Handler Mapping etc...
DispatcherServletInitializer for complete setup of Spring Web MVC and making IoC container ready
Configure InternalResourceViewResolver
Pure Annotation based configuration, No-XML
Create Controller and View to test the configuration
Maven Dependencies configuration (pom.xml) for Spring Framework and related libraries
Deploy and Run first Spring MVC Web application based on annotation
SOURCE CODE DESCRIPTION:
ContactAppDispatcherServletInitializer : This class integrates all beans(MVC framework, Service, DAO etc..) and initializes IoC container where all beans live.
getRootConfigClasses() : Load Service and DAO Beans which is handing the business logic of our project. The class "SpringRootConfig" has declaration of all required service and dao beans..its being loaded here.
getServletConfigClasses() : Load Spring MVC related beans like ViewResolver, ResourceHandler(static files - js, images etc..) , HandlerMapping and Controllers. The class "SpringWebConfig" has declaration of MVC related beans.
getServletMappings() :
Specify the url-pattern of DispatcherServlet which is a front-controller of MVC framework. All incoming requests of this pattern(/ , .htm , .do etc..) will be processed through DispatcherServlet. Here url-pattern / means all requests will be passed through DispatcherServlet.
Don't skip or miss any video, just follow step by step video series.
Also check the source code listing in our
blog http://ezeon.in/blog