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.
164 lines
4.7 KiB
164 lines
4.7 KiB
10 months ago
|
<?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_2_5.xsd"
|
||
|
version="2.5">
|
||
|
|
||
|
<context-param>
|
||
|
<param-name>contextConfigLocation</param-name>
|
||
|
<param-value>/WEB-INF/conf/ac_*.xml</param-value>
|
||
|
</context-param>
|
||
|
<context-param>
|
||
|
<param-name>log4jConfigLocation</param-name>
|
||
|
<param-value>classpath:log4j.properties</param-value>
|
||
|
</context-param>
|
||
|
|
||
|
<listener>
|
||
|
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
||
|
</listener>
|
||
|
|
||
|
<listener>
|
||
|
<listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>
|
||
|
</listener>
|
||
|
|
||
|
<filter>
|
||
|
<filter-name>encodingFilter</filter-name>
|
||
|
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
|
||
|
<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>-->
|
||
|
<!-- <filter-name>AjaxFilter</filter-name>-->
|
||
|
<!-- <filter-class>com.fy.web.helper.AjaxFilter</filter-class>-->
|
||
|
<!-- </filter>-->
|
||
|
<!-- <filter-mapping>-->
|
||
|
<!-- <filter-name>AjaxFilter</filter-name>-->
|
||
|
<!-- <url-pattern>/*</url-pattern>-->
|
||
|
<!-- </filter-mapping>-->
|
||
|
|
||
|
<!-- 连接池 启用Web监控统计功能
|
||
|
<filter>
|
||
|
<filter-name>DruidWebStatFilter</filter-name>
|
||
|
<filter-class>com.alibaba.druid.support.http.WebStatFilter</filter-class>
|
||
|
<init-param>
|
||
|
<param-name>exclusions</param-name>
|
||
|
<param-value>*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*</param-value>
|
||
|
</init-param>
|
||
|
</filter>
|
||
|
<filter-mapping>
|
||
|
<filter-name>DruidWebStatFilter</filter-name>
|
||
|
<url-pattern>/*</url-pattern>
|
||
|
</filter-mapping>
|
||
|
<servlet>
|
||
|
<servlet-name>DruidStatView</servlet-name>
|
||
|
<servlet-class>com.alibaba.druid.support.http.StatViewServlet</servlet-class>
|
||
|
</servlet>
|
||
|
<servlet-mapping>
|
||
|
<servlet-name>DruidStatView</servlet-name>
|
||
|
<url-pattern>/druid/*</url-pattern>
|
||
|
</servlet-mapping>
|
||
|
连接池 启用Web监控统计功能 end-->
|
||
|
|
||
|
<!-- Shiro filter
|
||
|
<filter>
|
||
|
<filter-name>shiroFilter</filter-name>
|
||
|
<filter-class>
|
||
|
org.springframework.web.filter.DelegatingFilterProxy
|
||
|
</filter-class>
|
||
|
<init-param>
|
||
|
<param-name>targetFilterLifecycle</param-name>
|
||
|
<param-value>true</param-value>
|
||
|
</init-param>
|
||
|
</filter>
|
||
|
<filter-mapping>
|
||
|
<filter-name>shiroFilter</filter-name>
|
||
|
<url-pattern>/*</url-pattern>
|
||
|
</filter-mapping>
|
||
|
Shiro filter-->
|
||
|
|
||
|
<servlet>
|
||
|
<servlet-name>springMVC</servlet-name>
|
||
|
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
||
|
<init-param>
|
||
|
<param-name>contextConfigLocation</param-name>
|
||
|
<param-value>/WEB-INF/conf/mvc/ac_mvc.xml</param-value>
|
||
|
</init-param>
|
||
|
<load-on-startup>1</load-on-startup>
|
||
|
</servlet>
|
||
|
<servlet-mapping>
|
||
|
<servlet-name>springMVC</servlet-name>
|
||
|
<url-pattern>/</url-pattern>
|
||
|
</servlet-mapping>
|
||
|
|
||
|
<servlet>
|
||
|
<servlet-name>CXFServlet</servlet-name>
|
||
|
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
|
||
|
<load-on-startup>3</load-on-startup>
|
||
|
</servlet>
|
||
|
<servlet-mapping>
|
||
|
<servlet-name>CXFServlet</servlet-name>
|
||
|
<url-pattern>/ws/*</url-pattern>
|
||
|
</servlet-mapping>
|
||
|
|
||
|
<servlet>
|
||
|
<servlet-name>loadServlet</servlet-name>
|
||
|
<servlet-class>com.fy.web.servlet.LoadServlet</servlet-class>
|
||
|
<load-on-startup>99</load-on-startup>
|
||
|
</servlet>
|
||
|
|
||
|
<!--
|
||
|
<welcome-file-list>
|
||
|
<welcome-file>/index</welcome-file>
|
||
|
</welcome-file-list>
|
||
|
-->
|
||
|
|
||
|
<!--
|
||
|
<error-page>
|
||
|
<error-code>405</error-code>
|
||
|
<location>/WEB-INF/405.html</location>
|
||
|
</error-page>
|
||
|
<error-page>
|
||
|
<error-code>404</error-code>
|
||
|
<location>/WEB-INF/404.html</location>
|
||
|
</error-page>
|
||
|
<error-page>
|
||
|
<error-code>500</error-code>
|
||
|
<location>/WEB-INF/500.html</location>
|
||
|
</error-page>
|
||
|
<error-page>
|
||
|
<error-code>javax.servle.ServletException</error-code>
|
||
|
<location>/WEB-INF/error.html</location>
|
||
|
</error-page>
|
||
|
<error-page>
|
||
|
<error-code>java.lang.NullPointerException</error-code>
|
||
|
<location>/WEB-INF/error.html</location>
|
||
|
</error-page>
|
||
|
|
||
|
<context-param>
|
||
|
<param-name>spring.profiles.active</param-name>
|
||
|
<param-value>dev</param-value>
|
||
|
</context-param>
|
||
|
<context-param>
|
||
|
<param-name>spring.profiles.default</param-name>
|
||
|
<param-value>dev</param-value>
|
||
|
</context-param>
|
||
|
<context-param>
|
||
|
<param-name>spring.liveBeansView.mbeanDomain</param-name>
|
||
|
<param-value>dev</param-value>
|
||
|
</context-param>
|
||
|
|
||
|
<session-config>
|
||
|
<session-timeout>600</session-timeout>
|
||
|
</session-config>
|
||
|
-->
|
||
|
</web-app>
|