servlet的web.xml的配置信息
2017-11-05 22:54
225 查看
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
<display-name>test</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>
<servlet>
<servlet-name>Check</servlet-name>
<servlet-class>servlet.Check</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Check</servlet-name>
<url-pattern>/servlet/Checkinfo</url-pattern>
</servlet-mapping>
</web-app>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
<display-name>test</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>
<servlet>
<servlet-name>Check</servlet-name>
<servlet-class>servlet.Check</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Check</servlet-name>
<url-pattern>/servlet/Checkinfo</url-pattern>
</servlet-mapping>
</web-app>
相关文章推荐
- Servlet 在 web.xml 中设置<init-param>配置信息遇到的问题
- Servlet不同版本配置web.xml头信息
- servlet中用注解的方式读取web.xml中的配置信息
- Tomcat7.0后版本无需在web.xml中配置Servlet信息
- 没有配置web.xml但servlet仍然起作用?
- servlet相关笔记(web.xml基础配置)
- java web.xml配置servlet
- Spring配置web.xml的<servlet>标签
- Servlet容器Tomcat中web.xml中url-pattern的配置详解
- web.xml中关于Servlet、Filter、Listener的配置
- web.xml中servlet, spring, filter, listenr的配置
- web.xml中servlet-mapping的配置
- tomcat7.0使用servlet处理jsp表单(form)的web.xml配置
- web.xml自定义配置信息
- Tomcat中web.xml配置数据库和servlet的配置
- web.xml中servlet-mapping的配置
- Servlet(19)web.xml 配置之Servlet参数配置和读取资源文件,获取文件全路径
- servlet 的web.xml配置文件中的介绍
- servlet为什么要配置web.xml
- servlet的web.xml配置有什么意义,运行时是什么流程?