首页 > 代码库 > SpringMvc执行过程

SpringMvc执行过程

 

1. 先执行各种 Filter

2. HttpServlet.service(ServletRequest req, ServletResponse res)

3. HttpServlet.service(HttpServletRequest req, HttpServletResponse resp) 根据 Method做分发。以下是POST流程

4. FrameworkServlet.doPost(HttpServletRequest request, HttpServletResponse response) -> processRequest -> doService -> doDispatch

5. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handle

6. InvocableHandlerMethod.doInvoke

7. 到了Action方法

 

SpringMvc执行过程