[转载]Spring Web MVC Framework
2024-10-19 09:38:55
Required Configuration
You need to map requests that you want the DispatcherServlet to handle, by using a URL mapping in the web.xml file. The following is an example to show declaration and mapping |
for HelloWebDispatcherServlet example: |
<web-app id="WebApp_ID" version="2.4" <display-name>Spring MVC Application</display-name> <servlet> org.springframework.web.servlet.DispatcherServlet </servlet-class> <load-on-startup>1</load-on-startup> <servlet-mapping> </servlet-mapping> |
The web.xml file will be kept WebContent/WEB-INF directory of your web application. OK, upon initialization of HelloWeb DispatcherServlet, the framework will try to load the application context from a file named [servlet-name]-servlet.xml located in the application's WebContent/WEB- INF directory. In this case our file will be HelloWeb-servlet.xml. |
最新文章
- ubuntu中查看已有的mysql用户并修改用户名和密码
- jQuery Mobile入门
- C语言 &#183; 回文数
- Web Essentials之HTML和CSS操作技巧
- 使用mx:Repeater在删除和添加item时列表闪烁
- C++ Primer : 第十章 : 泛型算法 之 只读、写和排序算法
- Hadoop学习1--解决启动过程中的问题
- (转)价值240万的photoshop中文教程,错过了后悔都来不及 (吹得好响)
- FileUtils
- eclipse新建workspace使用之前workspace的个性配置
- 第四组UI组件:AdapterView及子类
- linux下keepalived 安装配置
- 2015 多校联赛 ——HDU5325(DFS)
- [Swift]扩展String类:Base64的编码和解码
- JS_高程5.引用类型(3)Array类型-检测数组
- linux如何查看端口被哪个进程占用
- 鸟哥的Linux私房菜——第九章
- SearchBySql
- maven 知识点2
- hdu 4417,poj 2104 划分树(模版)归并树(模版)
热门文章
- 微信公众号与HTML 5混合模式揭秘1——如何部署JSSDK
- 杭电ACM2061--Treasure the new start, freshmen!
- BZOJ 1631==USACO 2007== POJ 3268 Cow Party奶牛派对
- sicily 1027 MJ, Nowhere to Hide 字符串匹配与排序
- Mentor PADS 9.5下载安装及破解指南
- Linux5.8下安装PhpMyadmin无法关联php-mcrypt问题
- JAVA多线程学习--哲学家就餐问题
- php 文件上传简单类---限制仅上传jpg文件
- hdu 5545 The Battle of Guandu spfa最短路
- 数据分析≠Hadoop+NoSQL,不妨先看完善现有技术的10条捷径(分享)