SpringMVC-基础篇-web.xml
来源:互联网 发布:淘宝网冬天皮鞋男士 编辑:程序博客网 时间:2024/06/11 03:03
?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>SpringMVCPingJie</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<!-- SpringMVC过滤器(就是一个servlet) -->
<!-- 每次发送请求是希望进入到SpringMVC里 -->
<servlet>
<servlet-name>DispatcherServlet</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<!-- 初始化参数(前端控制器把请求交给“contextConfigLocation”指明的配置文件) -->
<init-param>
<param-name>contextConfigLocation</param-name>
<!-- 文件的名字必须是servlet的名字-servlet.xml -->
<param-value>/WEB-INF/DispatcherServlet-servlet.xml</param-value>
</init-param>
<!-- 下面这行的意思是如果有请求优先访问这个servlet -->
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>DispatcherServlet</servlet-name>
<!-- 只要是“/”都要经过上面那个名字 -->
<url-pattern>/</url-pattern>
</servlet-mapping>
</web-app>
<!-- ========================================================== -->
<!-- 单词 -->
<!-- dispatcher[dɪs'pætʃə]n. 调度员;[计] 调度程序;[计] 分配器 -->
<!-- servlet['sɜːvlət]n. 伺服小程式;小服务程序 -->
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>SpringMVCPingJie</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<!-- SpringMVC过滤器(就是一个servlet) -->
<!-- 每次发送请求是希望进入到SpringMVC里 -->
<servlet>
<servlet-name>DispatcherServlet</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<!-- 初始化参数(前端控制器把请求交给“contextConfigLocation”指明的配置文件) -->
<init-param>
<param-name>contextConfigLocation</param-name>
<!-- 文件的名字必须是servlet的名字-servlet.xml -->
<param-value>/WEB-INF/DispatcherServlet-servlet.xml</param-value>
</init-param>
<!-- 下面这行的意思是如果有请求优先访问这个servlet -->
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>DispatcherServlet</servlet-name>
<!-- 只要是“/”都要经过上面那个名字 -->
<url-pattern>/</url-pattern>
</servlet-mapping>
</web-app>
<!-- ========================================================== -->
<!-- 单词 -->
<!-- dispatcher[dɪs'pætʃə]n. 调度员;[计] 调度程序;[计] 分配器 -->
<!-- servlet['sɜːvlət]n. 伺服小程式;小服务程序 -->
0 0
- SpringMVC-基础篇-web.xml
- SpringMVC-提高篇-web.xml
- springmvc.xml web.xml
- SpringMVC(1):基础配置文件web.xml 和 <servlet-name>-servlet.xml / springmvc.xml
- springMVC web.xml配置文件
- SpringMVC web.xml配置
- springmvc web.xml详解
- SpringMVC web.xml配置
- springmvc配置文件:web.xml
- springmvc.xml(WEB-INF)
- SpringMVC-基础篇-DispatcherServlet-servlet.xml
- SSH - 基础篇 - web.xml
- springmvc之web.xml配置
- springMVC web.xml配置文件参考
- web.xml配置,基于SpringMVC
- SpringMVC之web.xml解读
- SSH+SpringMVC web.xml详解
- SpringMVC的web.xml文件
- Java IO
- C# 常用公共方法
- Node.js与mysql
- LayoutAnimation给ListView中的item设置动态出场效果
- jQuery UI 使用心得及技巧
- SpringMVC-基础篇-web.xml
- 全选、反选、取消
- Spring学习笔记(二十三):关于STS提示"javax.servlet.http.HttpServletRequest cant be resolved"的问题
- 如何修改Recovery的字符串资源
- ERROR org.apache.hadoop.hdfs.server.datanode.DataNode: java.io.IOException: Incompatible namespaceID
- Android Studio 断点调试和高级调试
- 博客系统 迭代 各个版本 总结思考
- 解析xml方式之SAX,流模式解析
- 帖子浏览定位展开、收起标签js部分思路及代码