- 1、本文档共22页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
《Spring MVC3.0》.pdf
Spring MVC
Agenda
•Overview of Spring MVC
•Getting started
•Writing controllers
•Resolving views
•Spring MVC’s JSP tags
•RESTful HTTP Methods
•Validation
E-mail: craig@ Blog: Twitter: habuma
Spring MVC
Overview
Key pieces of Spring MVC
•DispatcherServlet
•ContextLoaderListener
•Handler adapters and mappings
•Controllers
• ...and their dependencies
•View resolvers
•Views
E-mail: craig@ Blog: Twitter: habuma
The life of a request
E-mail: craig@ Blog: Twitter: habuma
Spring MVC: A Look Back
•An original part of the Spring Framework
• Including in Spring 1.0
•A rare “wheel reinvention” by Spring
•“We can do better” than Struts and WebWork
E-mail: craig@ Blog: Twitter: habuma
Legacy controller hierarchy
E-mail: craig@ Blog: Twitter: habuma
Spring MVC 2.5
•Annotation-oriented controllers
•Controller hierarchy deprecated
E-mail: craig@ Blog: Twitter: habuma
Spring MVC 3.0
•Continued annotation-orientation
•REST support
E-mail: craig@ Blog: Twitter: habuma
Getting Started
with
Spring MVC
DispatcherServlet
In web.xml
servlet
servlet-namespitter/servlet-name
servlet-class
org.springframework.web.servlet.DispatcherServlet
/servlet-class
load-on-startup1/load-on-startup
/servlet
servlet-mapping
servlet-namespitter/servlet-name
url-pattern/app/*/url-pattern
/servlet-mapping
Loads Spring context from /WEB-INF/{servlet-name}-context.xml
E-mail: craig@ Blog: Twitter: habuma
ContextLoaderListener
In web.xml
context-param
param-namecontextConfigLocation/param-na
您可能关注的文档
- 《QC T 708-2016 汽车空调风机技术条件》.pdf
- 《QC T731-2016 汽车用起动机技术条件》.pdf
- 《QC-T 29106‐2016《汽车低压电线束技术条件》 标准修订说明》.pdf
- 《QC-T 491-1999 汽车筒式减振器尺寸系列及技术条件》.pdf
- 《QC-T+631-1999+汽车排气消声器技术条件》.pdf
- 《QC-T29106-2016_汽车低压电线束技术条件》.pdf
- 《QC-T311-1999_汽车液压制动主缸技术条件》.pdf
- 《QC-T_469-2016_汽车发动机气门技术条件》.pdf
- 《QCon 北京 - 对象云存储》.pdf
- 《QCon上海2015-大型分布式系统设计的一些黄金原则和实例-俞圆圆》.pdf
文档评论(0)