You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
2.0 KiB
59 lines
2.0 KiB
<?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"
|
|
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
|
|
version="3.0">
|
|
|
|
|
|
|
|
<welcome-file-list>
|
|
<welcome-file>index.jsp</welcome-file>
|
|
</welcome-file-list>
|
|
|
|
<listener>
|
|
<listener-class>com.ynxbd.common.config.WebContextLister</listener-class>
|
|
</listener>
|
|
|
|
<filter>
|
|
<filter-name>struts2</filter-name>
|
|
<filter-class>org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter</filter-class>
|
|
</filter>
|
|
|
|
<!-- <!– 字符集过滤 –>-->
|
|
<!-- <filter>-->
|
|
<!-- <filter-name>encodingFilter</filter-name>-->
|
|
<!-- <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>-->
|
|
<!-- <async-supported>true</async-supported>-->
|
|
<!-- <!– 传入参数 –>-->
|
|
<!-- <init-param>-->
|
|
<!-- <param-name>encoding</param-name>-->
|
|
<!-- <param-value>UTF-8</param-value>-->
|
|
<!-- </init-param>-->
|
|
<!-- <!– 强制覆盖 –>-->
|
|
<!-- <init-param>-->
|
|
<!-- <param-name>forceEncoding</param-name>-->
|
|
<!-- <param-value>true</param-value>-->
|
|
<!-- </init-param>-->
|
|
<!-- </filter>-->
|
|
|
|
<!-- <!–过滤所有–>-->
|
|
<!-- <filter-mapping>-->
|
|
<!-- <filter-name>encodingFilter</filter-name>-->
|
|
<!-- <url-pattern>/*</url-pattern>-->
|
|
<!-- </filter-mapping>-->
|
|
|
|
|
|
<!--过滤所有-->
|
|
<!-- <filter-mapping>-->
|
|
<!-- <filter-name>encodingFilter</filter-name>-->
|
|
<!-- <url-pattern>/*</url-pattern>-->
|
|
<!-- </filter-mapping>-->
|
|
|
|
<!-- <filter-mapping>-->
|
|
<!-- <filter-name>struts2</filter-name>-->
|
|
<!-- <url-pattern>*.do</url-pattern>-->
|
|
<!-- </filter-mapping>-->
|
|
<filter-mapping>
|
|
<filter-name>struts2</filter-name>
|
|
<url-pattern>*</url-pattern>
|
|
</filter-mapping>
|
|
</web-app>
|
|
|