首页 > 编程语言 > 详细

An overview of the Spring MVC request flow

时间:2015-01-29 12:04:13      阅读:279      评论:0      收藏:0      [点我收藏+]

技术分享

 

The Spring MVC request flow in short:

  1. When we enter a URL in the browser, the request comes to the dispatcher servlet. The dispatcher servlet then acts as a centralized entry point to the web application.
  2. The dispatcher servlet determines a suitable controller that is capable of handling the request and dispatching this request to the controller.
  3. The controller method updates objects in the model and returns the logical view name and updated model to the dispatcher servlet.
  4. The dispatcher servlet consults with the view resolver to determine which view to render and passes the model data to that view.
  5. The view furnishes the dynamic values in the web page using the model data, renders the final web page, and returns this web page to the dispatcher servlet.
  6. At the end, the dispatcher servlet returns the final, rendered page as a response to the browser.

An overview of the Spring MVC request flow

原文:http://www.cnblogs.com/IcanFixIt/p/4259086.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!