(一)Spring’s MVC Architecture
2016-03-14 14:58
525 查看
Spring’s MVC module
Spring’s MVC module is based on front controller design pattern followed by MVC design pattern. All the incoming requests are handled by the single servlet named DispatcherServlet which acts as the front controller in Spring’s MVC module. The DispatcherServlet then refers to the HandlerMapping to find a controller object which can handle the request. DispatcherServlet then dispatches the request to the controller object so that it can actually perform the business logic to fulfil the user request. (Controller may delegate the responsibility to further application objects known as service objects). The controller returns an encapsulated object containing the model object and the view object (or a logical name of the view). In Spring’s MVC, this encapsulated object is represented by class ModelAndView. In case ModelAndView contains the logical name of the view, the DispatcherServlet refers the ViewResolver to find the actual View object based on the logical name. DispatcherServlet then passes the model object to the view object which is then rendered to the end user.![](http://www.codejava.net/images/articles/frameworks/spring/Understanding%20Spring%20MVC/SpringMVCArchitecture.jpg)
Spring MVC Architecture
相关文章推荐
- [JAVA]关于HashMap的使用和遍历
- Java 回顾笔记_多线程_线程通讯2
- web.xml中配置spring的几种方式
- java implement和extends
- Java反射Reflection
- Java反射_JDBC操作数据
- java实现计算器
- win7和win8下的jdk环境变量设置
- Spring Web
- H-Index II | Java最短代码实现
- 关于java学习的一些感受
- Spring框架中CharacterEncodingFilter的作用真的没那么大
- java 死锁产生原因及解锁
- maven 项目(四) spring集成springMVC开发统一接入API(准备工作:第一部分)
- 【转】myeclipse 上安装 Maven3
- Myeclipse去除空行
- 简单归并算法-有序数组合并算法实现
- 用JAVA打暴雪星际争霸(1)--搭建开发环境
- [疯狂Java]AWT剪切板:图像传递
- Java中BIO,NIO,AIO的理解