SpringMVC处理请求的过程

1.DispatcherServlet拦截http请求

2.DispatcherServlet通过请求信息和HandlerMapping配置信息获取处理器Handler

3.HandlerAdapter适配并调用Handler

4.HandlerAdapter返回ModelAndView(逻辑视图名+模型数据)给DispatcherServlet

5.ViewResolver将逻辑视图名解析成真实视图对象View

6.View对象对模型数据进行视图渲染

7.返回http响应

猜你喜欢

转载自csolar.iteye.com/blog/2150977