文件名称:springmvc_demo
-
所属分类:
- 标签属性:
- 上传时间:2013-08-13
-
文件大小:35.82kb
-
已下载: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 Framework 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 Framework 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/
springmvc/.classpath
springmvc/.myeclipse/
springmvc/.mymetadata
springmvc/.project
springmvc/spring-mvc.jpg
springmvc/spring06.txt
springmvc/src/
springmvc/src/applicationContext.xml
springmvc/src/tarena/
springmvc/src/tarena/action/
springmvc/src/tarena/action/LoginController.java
springmvc/src/tarena/action/ToLoginController.java
springmvc/src/tarena/action/WelcomeController.java
springmvc/src/tarena/entity/
springmvc/src/tarena/entity/User.java
springmvc/WebRoot/
springmvc/WebRoot/index.jsp
springmvc/WebRoot/META-INF/
springmvc/WebRoot/META-INF/MANIFEST.MF
springmvc/WebRoot/WEB-INF/
springmvc/WebRoot/WEB-INF/classes/
springmvc/WebRoot/WEB-INF/classes/applicationContext.xml
springmvc/WebRoot/WEB-INF/classes/tarena/
springmvc/WebRoot/WEB-INF/classes/tarena/action/
springmvc/WebRoot/WEB-INF/classes/tarena/action/LoginController.class
springmvc/WebRoot/WEB-INF/classes/tarena/action/ToLoginController.class
springmvc/WebRoot/WEB-INF/classes/tarena/action/WelcomeController.class
springmvc/WebRoot/WEB-INF/classes/tarena/entity/
springmvc/WebRoot/WEB-INF/classes/tarena/entity/User.class
springmvc/WebRoot/WEB-INF/jsp/
springmvc/WebRoot/WEB-INF/jsp/login.jsp
springmvc/WebRoot/WEB-INF/jsp/ok.jsp
springmvc/WebRoot/WEB-INF/jsp/welcome.jsp
springmvc/WebRoot/WEB-INF/lib/
springmvc/WebRoot/WEB-INF/web.xml
springmvc/.classpath
springmvc/.myeclipse/
springmvc/.mymetadata
springmvc/.project
springmvc/spring-mvc.jpg
springmvc/spring06.txt
springmvc/src/
springmvc/src/applicationContext.xml
springmvc/src/tarena/
springmvc/src/tarena/action/
springmvc/src/tarena/action/LoginController.java
springmvc/src/tarena/action/ToLoginController.java
springmvc/src/tarena/action/WelcomeController.java
springmvc/src/tarena/entity/
springmvc/src/tarena/entity/User.java
springmvc/WebRoot/
springmvc/WebRoot/index.jsp
springmvc/WebRoot/META-INF/
springmvc/WebRoot/META-INF/MANIFEST.MF
springmvc/WebRoot/WEB-INF/
springmvc/WebRoot/WEB-INF/classes/
springmvc/WebRoot/WEB-INF/classes/applicationContext.xml
springmvc/WebRoot/WEB-INF/classes/tarena/
springmvc/WebRoot/WEB-INF/classes/tarena/action/
springmvc/WebRoot/WEB-INF/classes/tarena/action/LoginController.class
springmvc/WebRoot/WEB-INF/classes/tarena/action/ToLoginController.class
springmvc/WebRoot/WEB-INF/classes/tarena/action/WelcomeController.class
springmvc/WebRoot/WEB-INF/classes/tarena/entity/
springmvc/WebRoot/WEB-INF/classes/tarena/entity/User.class
springmvc/WebRoot/WEB-INF/jsp/
springmvc/WebRoot/WEB-INF/jsp/login.jsp
springmvc/WebRoot/WEB-INF/jsp/ok.jsp
springmvc/WebRoot/WEB-INF/jsp/welcome.jsp
springmvc/WebRoot/WEB-INF/lib/
springmvc/WebRoot/WEB-INF/web.xml
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.