How springmvc works

1. The user initiates a request to the front-end processor DispatchServlet.

2. The front-end processor DispatchServlet requests HandlerMapping to find Handler.

3. The processing mapper HandlerMapping returns Handler to the front-end processor DispatchServlet.

4. The front-end processor DispatchServlet calls the processor adapter HandlerAdapter to execute the Handler.

5. Handler executes Handler.

6. After the execution of the processor is completed, the ModelAndView is returned to the HandlerAdapter.

7. HandlerAdapter returns ModelAndView to DispatchServlet.

8. DispatchServlet calls the view resolver ViewResolver for view resolution.

9. View resolver ViewResolver parses the logical view into a real view and returns it to DispatchServlet.

10. DispatchServlet for view rendering.

11. The DispatcherServlet responds to the user.

Reference: https://www.cnblogs.com/xiaoxi/p/6164383.html

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325123475&siteId=291194637