<?xml version="1.0"
encoding="UTF-8"?>
<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">
<display-name>JKAS</display-name>
<description>JKAS
WEB SITE</description>
<servlet>
<servlet-name>routerServlet</servlet-name>
<servlet-class>org.jkas.Router</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>routerServlet</servlet-name>
<url-pattern>*.do</url-pattern><!--后缀要和config.ini里面的配置一致-->
</servlet-mapping>
<servlet-mapping>
<servlet-name>routerServlet</servlet-name>
<url-pattern>/jkas.js</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>routerServlet</servlet-name>
<url-pattern>*.jl</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.do</welcome-file>
</welcome-file-list>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<!-- tomcat运行的话必须要加 -->
<resource-ref>
<res-ref-name>dbconfig</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>