SpringMVC is a part of Spring framework which makes possible client-server communication using Spring framework. It has many components which takes part in finding the request, delegating the request coming from client to the mapped class for request processing and many more. Below is the name of few important and very frequent used components are involved in SpringMVC architecture :
1. Dispatcher Servlet (Front Controller)
2. Handler Mapping
3. View Resolver
Dispatcher Servlet : It is the first component which takes part in delegating the incoming request from clients to other component. It is designed using "front controller design pattern". Every request from client to server passes through this servlet only that why it is designed using the front controller design pattern.
Handler Mapping: It is one of the component used for finding the resource and exactly the method responsible for request processing after dispatcher servlet takes the incoming request. Dispatcher servlet takes the URL from the incoming request and delegates the URL to the handler mapping.
It search for the exact method mapped with that URL and return it to the Dispatcher servlet.
View Resolver: View is also one of the component which is used to complete the path of the resource to be displayed after complete request processing. InternalViewResolver is the default one used by the Spring framework.
Below is the image of the Layer structure of java web application :
It search for the exact method mapped with that URL and return it to the Dispatcher servlet.
View Resolver: View is also one of the component which is used to complete the path of the resource to be displayed after complete request processing. InternalViewResolver is the default one used by the Spring framework.
Below is the image of the Layer structure of java web application :
In the above diagram you can see SpringMVC persists into controller layer and this layer is dedicated for request processing.