Spring MVC workflow

1. DispatchServlet user sends a request to
the request 2.DispatchServlet intercepted, the mapper will call processing HandlerMapping
3. mapper process according to the URL locate specific processor, an object processor, and a processor generates interceptors
5.HandlerAdapter calls Handler ( processor), where the processor means is programmed in Controller class, also called the backend processor
6.Controller executed, returns a ModelAndView object that will contain the name of the view or a view name and model
the object is returned to the 7.HandlerAdapter ModelAndView DispatchServlet
8.DispatchServlet selects an appropriate ViewResolver (view resolver) according ModelAndView object
9.ViewResolver parsed, it will return specific view (view) in the DispatchServlet
10.DispatchServlet to render view (soon to view the model data to fill in)
11.-view rendering results are returned to the client browser to display
Here Insert Picture Description

Guess you like

Origin blog.csdn.net/weixin_44174536/article/details/90287469