Book Image

Spring MVC Beginner's Guide

By : Amuthan Ganeshan
Book Image

Spring MVC Beginner's Guide

By: Amuthan Ganeshan

Overview of this book

Table of Contents (19 chapters)
Spring MVC Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


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...