At the start of this chapter, we learned the duty of a dispatcher servlet and how it maps a request using the @RequestMapping
annotation. Next, we saw what a web application context is and how to configure it for our web application. After that, we got a little introduction about view resolvers and how InternalResourceViewResolver
resolves the view file for the given logical view name. We also learned the concept of MVC and the overall request flow of a Spring MVC application, and then we learned about web application architecture. In the web application architecture section, we saw how to create and organize code under the various layers of a Spring MVC application, such as the domain layer, persistence layer, and service layer. At the same time, we saw how to retrieve product domain objects from the repository and present them on the web page using the controller. We also learned where a service object fits in. Finally, we saw an overview of the web application architecture.
I hope...