|
@@ -0,0 +1,81 @@
|
|
|
|
+<?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">
|
|
|
|
+ <welcome-file-list>
|
|
|
|
+ <welcome-file>/admin/login.jsp</welcome-file>
|
|
|
|
+ </welcome-file-list>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <context-param>
|
|
|
|
+ <param-name>contextConfigLocation</param-name>
|
|
|
|
+ <param-value>/WEB-INF/classes/spring/applicationContext-*.xml</param-value>
|
|
|
|
+ </context-param>
|
|
|
|
+ <filter>
|
|
|
|
+ <filter-name>CharacterEncodingFilter</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>CharacterEncodingFilter</filter-name>
|
|
|
|
+ <url-pattern>/*</url-pattern>
|
|
|
|
+ </filter-mapping>
|
|
|
|
+ <listener>
|
|
|
|
+ <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
|
|
|
+ </listener>
|
|
|
|
+ <servlet>
|
|
|
|
+ <servlet-name>wxdc</servlet-name>
|
|
|
|
+ <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
|
|
|
+ <init-param>
|
|
|
|
+ <param-name>contextConfigLocation</param-name>
|
|
|
|
+ <param-value>classpath:spring/mvc-dispatcher-servlet.xml</param-value>
|
|
|
|
+ </init-param>
|
|
|
|
+ <load-on-startup>1</load-on-startup>
|
|
|
|
+ </servlet>
|
|
|
|
+ <servlet-mapping>
|
|
|
|
+ <servlet-name>wxdc</servlet-name>
|
|
|
|
+ <url-pattern>/</url-pattern>
|
|
|
|
+ </servlet-mapping>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <servlet>
|
|
|
|
+ <servlet-name>dwr-invoker</servlet-name>
|
|
|
|
+ <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
|
|
|
|
+ <init-param>
|
|
|
|
+ <param-name>debug</param-name>
|
|
|
|
+ <param-value>true</param-value>
|
|
|
|
+ </init-param>
|
|
|
|
+ <init-param>
|
|
|
|
+ <param-name>crossDomainSessionSecurity</param-name>
|
|
|
|
+ <param-value>false</param-value>
|
|
|
|
+ </init-param>
|
|
|
|
+ <init-param>
|
|
|
|
+ <param-name>activeReverseAjaxEnabled</param-name>
|
|
|
|
+ <param-value>true</param-value>
|
|
|
|
+ </init-param>
|
|
|
|
+ <init-param>
|
|
|
|
+ <param-name>initApplicationScopeCreatorsAtStartup</param-name>
|
|
|
|
+ <param-value>true</param-value>
|
|
|
|
+ </init-param>
|
|
|
|
+ <init-param>
|
|
|
|
+ <param-name>maxWaitAfterWrite</param-name>
|
|
|
|
+ <param-value>500</param-value>
|
|
|
|
+ </init-param>
|
|
|
|
+ <load-on-startup>1</load-on-startup>
|
|
|
|
+ </servlet>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <servlet-mapping>
|
|
|
|
+ <servlet-name>dwr-invoker</servlet-name>
|
|
|
|
+ <url-pattern>/dwr/*</url-pattern>
|
|
|
|
+ </servlet-mapping>
|
|
|
|
+
|
|
|
|
+</web-app>
|