Springmvc process
Meaning: ujiuye

Spring MVC is a follow-up product of SpringFrameWork and has been integrated into Spring Web Flow. Spring framework provides a fully functional MVC module for building Web applications. Springmvc is a mvc framework of web layer, which is used to replace servlet (processing response requests, obtaining form parameters, verifying forms, etc.). ).

Technology: ujiuye

1. The user sends a request to the front-end controller DispatcherServlet.

2.DispatcherServlet receives the request to call HandlerMapping processor mapper.

3. The processor mapper finds a specific processor (which can be searched according to the xml configuration and comments), generates a processor object and a processor interceptor (if any), and returns them to the DispatcherServlet.

4.DispatcherServlet calls HandlerAdapter processor adapter.

5.HandlerAdapter is suitable for calling a specific processor (controller, also known as back-end controller).

6. After executing the controller, return to ModelAndView.

7.HandlerAdapter returns the controller execution result ModelAndView to DispatcherServlet.

8.DispatcherServlet passes ModelAndView to ViewReslover view parser.

9.ViewReslover returns a specific view after parsing.

10.DispatcherServlet renders the view according to the view (that is, populates the view with model data).

11.dispatcher servlet responds to users.