Spring MVC configuration
The Spring MVC architecture is designed along with a front controller servlet, the DispatcherServlet
, which is a front controller pattern implementation and acts as an entry point for all of the HTTP requests and responses. The DispatcherServlet
can be configured and mapped using Java configuration or in the deployment descriptor file, web.xml
. Before moving on to the configuration part, let's understand the flow of Spring MVC architecture.
Spring MVC architecture
In the Spring MVC framework, there are multiple core components that maintain the flow of request and response execution. These components are clearly separated and have different interfaces and implementation classes, so they can be used according to requirements. These core components are as follows:
Component | Summary |
| It acts as a front controller of the Spring MVC framework through the life cycle of HTTP requests and responses. |
| When a request comes, this component is responsible... |