Skip to content

Instantly share code, notes, and snippets.

@wdfx100
Created July 29, 2013 15:33
Show Gist options
  • Save wdfx100/6105193 to your computer and use it in GitHub Desktop.
Save wdfx100/6105193 to your computer and use it in GitHub Desktop.
Spring MVC 处理请求流程
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