The workflow of springmvc

SpringMVC workflow: browser—
>1. Send request—>DispatchServlet (central controller)—2. Pass the request to the processor mapper—> HandlerMapping (processor mapper, find the request address to the corresponding processor)— 3. HandlerExecutionChain processor execution chain (including processor and interceptor) ----> DispatcherServlet (central controller) ---- 4. Hand over the found processor execution chain to HandlerAdapter—>HandlerAdapter (processor adapter )----5. Return ModelAndView—>DispatcherServlet (central controller) -----6. Pass ModelAndView to the view resolver—>ViewResolver (view resolver) -----7. Return View to DispatcherServlet ----DispatcherServlet (central controller)---->8. Render HTML and return to the browser---->Browser

Guess you like

Origin blog.csdn.net/tongwudi5093/article/details/115329323