-
-
Save wdfx100/6105193 to your computer and use it in GitHub Desktop.
Spring MVC 处理请求流程
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1、客户端发出请求; | |
2、DispatcherServlet 获取请求; | |
3、DispatcherServlet 查询 HandlerMapping,将请求的URL映射到一个控制器对象Controller, | |
并将请求分发给这个 Controller; | |
4、Controller 根据设计的业务逻辑处理请求; | |
5、完成业务逻辑的处理后,Controller 返回一个ModelAndView 给 DispatcherServlet ; | |
6、视图解析器 ViewResolver 解析ModelAndView 中的视图对象, | |
将处理结果返回给客户端。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment