文件名称:springmvc_demo
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2013-08-13
- 文件大小:
- 36kb
- 下载次数:
- 0次
- 提 供 者:
- 说*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
Spring框架的MVC实现
1)Spring MVC的体系结构
C控制器部分:DispatcherServlet、Controller
M模型部分:ModelAndView、ModelMap、实体类
V视图部分:JSP、spring标签
2)了解Spring MVC工作流程
a.客户端浏览器发送HTTP请求,请求到达DispatcherServlet控制器
b.DispatcherServlet控制器调用HandlerMapping映射处理器根据请求调用相应的Controller组件。
c.在Controller中执行约定方法,调用Service或DAO组件,完成请求处理。返回一个ModelAndView对象
d.控制器调用ViewResolver视图解析器,定义View视图资源
e.将View视图资源解析生成HTML响应,输出响应信息-Spring fr a mework MVC implementation
1) Spring MVC architecture
C controller part: DispatcherServlet, Controller
M model part: ModelAndView, ModelMap, entity classes
V view section: JSP, spring tags
2) understand the Spring MVC workflow
a. client browser sends an HTTP request to arrive DispatcherServlet controller
b.DispatcherServlet controller calls HandlerMapping map processor, upon request, call the appropriate Controller components.
c. perform the contract in the Controller method, call the Service or DAO components to complete the request processing. Return a ModelAndView object
d. controller calls ViewResolver view resolvers, view resources defined View
1)Spring MVC的体系结构
C控制器部分:DispatcherServlet、Controller
M模型部分:ModelAndView、ModelMap、实体类
V视图部分:JSP、spring标签
2)了解Spring MVC工作流程
a.客户端浏览器发送HTTP请求,请求到达DispatcherServlet控制器
b.DispatcherServlet控制器调用HandlerMapping映射处理器根据请求调用相应的Controller组件。
c.在Controller中执行约定方法,调用Service或DAO组件,完成请求处理。返回一个ModelAndView对象
d.控制器调用ViewResolver视图解析器,定义View视图资源
e.将View视图资源解析生成HTML响应,输出响应信息-Spring fr a mework MVC implementation
1) Spring MVC architecture
C controller part: DispatcherServlet, Controller
M model part: ModelAndView, ModelMap, entity classes
V view section: JSP, spring tags
2) understand the Spring MVC workflow
a. client browser sends an HTTP request to arrive DispatcherServlet controller
b.DispatcherServlet controller calls HandlerMapping map processor, upon request, call the appropriate Controller components.
c. perform the contract in the Controller method, call the Service or DAO components to complete the request processing. Return a ModelAndView object
d. controller calls ViewResolver view resolvers, view resources defined View
(系统自动生成,下载前可以参看下载内容)
下载文件列表
springmvc
.........\.classpath
.........\.myeclipse
.........\.mymetadata
.........\.project
.........\spring-mvc.jpg
.........\spring06.txt
.........\src
.........\...\applicationContext.xml
.........\...\tarena
.........\...\......\action
.........\...\......\......\LoginController.java
.........\...\......\......\ToLoginController.java
.........\...\......\......\WelcomeController.java
.........\...\......\entity
.........\...\......\......\User.java
.........\WebRoot
.........\.......\index.jsp
.........\.......\META-INF
.........\.......\........\MANIFEST.MF
.........\.......\WEB-INF
.........\.......\.......\classes
.........\.......\.......\.......\applicationContext.xml
.........\.......\.......\.......\tarena
.........\.......\.......\.......\......\action
.........\.......\.......\.......\......\......\LoginController.class
.........\.......\.......\.......\......\......\ToLoginController.class
.........\.......\.......\.......\......\......\WelcomeController.class
.........\.......\.......\.......\......\entity
.........\.......\.......\.......\......\......\User.class
.........\.......\.......\jsp
.........\.......\.......\...\login.jsp
.........\.......\.......\...\ok.jsp
.........\.......\.......\...\welcome.jsp
.........\.......\.......\lib
.........\.......\.......\web.xml