Summary

At the start of this chapter, you learned about the duties of the Dispatcher servlet and how it maps requests using the @RequestMapping annotation. Next you saw what the web application context is and how to configure a web application context for our web application. After that, you had a brief introduction tot view resolvers and how InternalResourceViewResolver resolves the view file for a given logical view name.

You also learned the concept of MVC and saw the overall request flow of a Spring MVC application. Then you learned about the web application architecture. In the web application architecture section, you saw how to create and organize code under the various layers of a Spring MVC application such as the Domain layer, the Persistence layer, and the Service layer. During its course, we showed you how to retrieve product domain objects from the repository and present them on a web page using the controller. You also learned where a service object fits in. Finally, you got an overview of the web application architecture.

We hope you now have a good overall understanding about Spring MVC and the various components involved in developing a Spring MVC application. In the next chapter, you will learn more about controllers and related concepts in depth. So see you in the next chapter!

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset