servlet web.xml配置文件

来源:互联网 发布:com域名注册 万维网 编辑:程序博客网 时间:2024/05/01 18:14
<web-app version="2.5"    xmlns="http://java.sun.com/xml/ns/javaee"    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">    <!-- 配置初始打开的页面 -->  <welcome-file-list>    <welcome-file>index.html</welcome-file>    <welcome-file>index.htm</welcome-file>    <welcome-file>index.jsp</welcome-file>  </welcome-file-list>  <servlet>     <!-- 类名 -->    <servlet-name>GetServlet</servlet-name>    <!-- 所在的包 -->    <servlet-class>com.mucfc.chapter0.GetServlet</servlet-class>  </servlet>  <servlet-mapping>    <servlet-name>GetServlet</servlet-name>    <!-- 访问的网址 -->    <url-pattern>/servlet/GetServlet</url-pattern>    </servlet-mapping></web-app>