码迷,mamicode.com
首页 > 编程语言 > 详细

Spring MVC(一)

时间:2014-07-03 10:08:35      阅读:232      评论:0      收藏:0      [点我收藏+]

标签:http   res   app   user   view   re   

The figure below shows the flow of request in the Spring MVC Framework.

bubuko.com,布布扣

When a request is sent to the Spring MVC Framework the following sequence of events happen.

  • The DispatcherServlet first receives the request.
  • The DispatcherServlet consults the HandlerMapping and invokes the Controller associated with the request.
  • The Controller process the request by calling the appropriate service methods and returns aModeAndView object to the DispatcherServlet. The ModeAndView object contains the model data and the view name.
  • The DispatcherServlet sends the view name to a ViewResolver to find the actual View to invoke.
  • Now the DispatcherServlet will pass the model object to the View to render the result.
  • The View with the help of the model data will render the result back to the user

Spring MVC(一),布布扣,bubuko.com

Spring MVC(一)

标签:http   res   app   user   view   re   

原文地址:http://www.cnblogs.com/mayt-/p/3818136.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!