How Spring MVC Works?
In this we will see the request flow for the spring framework. We will also show you the request flow diagram illustrating the working of Spring MVC module.
The Spring MVC modules comes with the Spring Framework distribution. The Spring MVC modules of the Spring Framework well integrates with rest of the framework. This modules is also very extensible.
Spring MVC is based on the MVC design pattern. Here is the list of key classes of Spring MVC.
Simplified Spring MVC architecture diagram
Following diagram shows the simplified architecture of Spring MVC:

Let's understand the sequences of the events happens when a request is received by the Spring MVC. Following events happens when DispatcherServlet receives are request:
Request flow in Spring MVC
Spring MVC is request driven and DispatcherServlet handles the request from client and then dispatches the request to controllers. It tightly integrates with the Spring IoC container and allows the developers to use every features of Spring framework.
The following diagram illustrates the request flow in Spring MVC.

Request handling steps in Spring MVC
In the next section we will see the controller stack in Spring MVC
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: How Spring MVC Module Works
Post your Comment