张家口产业监测
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.
 
 
 
 

151 lines
5.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"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">
<display-name>cjy-ssm</display-name>
<context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>classpath:config/log4j.xml</param-value>
</context-param>
<context-param>
<param-name>log4jRefreshInterval</param-name>
<param-value>10000</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:config/applicationContext.xml
</param-value>
</context-param>
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>app.root</param-value>
</context-param>
<context-param>
<param-name/>
<param-value/>
</context-param>
<!-- <servlet>
<servlet-name>startService</servlet-name>
<servlet-class>com.cjy.startup.StartService</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet> -->
<servlet>
<servlet-name>spring</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring-servlet.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>spring</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</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>
<welcome-file-list>
<!--<welcome-file>/hbcyjc/login.jsp</welcome-file>-->
<welcome-file>/</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>imageRandServlet</servlet-name>
<servlet-class>com.cjy.util.ImageRandServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>imageRandServlet</servlet-name>
<url-pattern>/servlet/imageRandServlet</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>xiongan</servlet-name>
<servlet-class>com.cjy.Xiongan</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>xiongan</servlet-name>
<url-pattern>/com/cjy/Xiongan</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>InitServlet</servlet-name>
<servlet-class>com.cjy.tags.init.InitServlet</servlet-class>
<load-on-startup>5</load-on-startup>
</servlet>
<jsp-config>
<taglib>
<taglib-uri>/cjytaglib</taglib-uri>
<taglib-location>/WEB-INF/cjytaglib/cjy-tags.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://cjy.jsp/tags</taglib-uri>
<taglib-location>/WEB-INF/cjytaglib/link.tld</taglib-location>
</taglib>
</jsp-config>
<session-config>
<session-timeout>120</session-timeout>
<cookie-config>
<name>lycyjcpt-session</name>
<http-only>true</http-only>
<secure>false</secure>
<max-age>7200</max-age>
</cookie-config>
</session-config>
<!--<error-page>
<error-code>400</error-code>
<location>/error-page/pages/error404.html</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/error-page/pages/error404.html</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/error-page/pages/error505.html</location>
</error-page>-->
<listener>
<listener-class>com.cjy.core.killport.AppContextListener</listener-class>
</listener>
<!-- spring session 过滤器 -->
<filter>
<filter-name>springSessionRepositoryFilter</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>springSessionRepositoryFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>