web.xml

来源:互联网 发布:法国 衰落知乎 编辑:程序博客网 时间:2024/05/17 01:01

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee   http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

 <display-name>lisco</display-name>
 
 <!-- 注明 Character Encoding filter,这里基于GBK进行编码-->
 <filter>
  <filter-name>encodingFilter</filter-name>
  <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
  <init-param>
   <param-name>encoding</param-name>
   <param-value>GBK</param-value>
  </init-param>
 </filter>
 <filter-mapping>
  <filter-name>encodingFilter</filter-name>
  <url-pattern>/*</url-pattern>
 </filter-mapping>
 
 <!-- Spring刷新Introspector防止Struts或Quartz等框架产生的内存泄露问题 -->
 <listener>
  <listener-class>
   org.springframework.web.util.IntrospectorCleanupListener
  </listener-class>
 </listener>
 
 <!-- Struts Action Mapping 装配Struts配置文件-->
  <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
      <param-name>config</param-name>
      <param-value>
        /WEB-INF/struts-config.xml,
        /yhgl/config/struts-config-yhgl.xml,
        /cwgl/config/struts-config-cwgl.xml
      </param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
  </servlet-mapping>
 
 
     
  <!-- 明确设定适用于所有服务器的session超时值,如果没有该项设置,则缺省的超时值由具体的服务器决定,单位为分钟。 -->
 <session-config>
  <session-timeout>120</session-timeout>
 </session-config>
 
 <!-- 默认首页定义 -->
 <welcome-file-list>
  <welcome-file>index.jsp</welcome-file>
  <welcome-file>index.htm</welcome-file>
  <welcome-file>index.html</welcome-file>
 </welcome-file-list>
 
 <!-- Error Page定义 -->
 
 
 
</web-app>

 

原创粉丝点击