|
@@ -0,0 +1,128 @@
|
|
1
|
+<!DOCTYPE web-app PUBLIC
|
|
2
|
+ "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
|
|
3
|
+ "http://java.sun.com/dtd/web-app_2_3.dtd" >
|
|
4
|
+
|
|
5
|
+<web-app>
|
|
6
|
+ <display-name>Archetype Created Web Application</display-name>
|
|
7
|
+
|
|
8
|
+ <context-param>
|
|
9
|
+ <param-name>webAppRootKey</param-name>
|
|
10
|
+ <param-value>thdemo.root</param-value>
|
|
11
|
+ </context-param>
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+ <!-- log4j2-begin -->
|
|
15
|
+ <context-param>
|
|
16
|
+ <param-name>log4jConfigLocation</param-name>
|
|
17
|
+ <param-value>classpath:log4j2.xml</param-value>
|
|
18
|
+ </context-param>
|
|
19
|
+
|
|
20
|
+ <listener>
|
|
21
|
+ <listener-class>org.apache.logging.log4j.web.Log4jServletContextListener</listener-class>
|
|
22
|
+ </listener>
|
|
23
|
+ <filter>
|
|
24
|
+ <filter-name>log4jServletFilter</filter-name>
|
|
25
|
+ <filter-class>org.apache.logging.log4j.web.Log4jServletFilter</filter-class>
|
|
26
|
+ </filter>
|
|
27
|
+ <filter-mapping>
|
|
28
|
+ <filter-name>log4jServletFilter</filter-name>
|
|
29
|
+ <url-pattern>/*</url-pattern>
|
|
30
|
+ <dispatcher>REQUEST</dispatcher>
|
|
31
|
+ <dispatcher>FORWARD</dispatcher>
|
|
32
|
+ <dispatcher>INCLUDE</dispatcher>
|
|
33
|
+ <dispatcher>ERROR</dispatcher>
|
|
34
|
+ </filter-mapping>
|
|
35
|
+ <!-- log4j2-end -->
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+ <context-param>
|
|
39
|
+ <param-name>contextConfigLocation</param-name>
|
|
40
|
+ <param-value>classpath:applicationContext.xml</param-value>
|
|
41
|
+ </context-param>
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+ <listener>
|
|
45
|
+ <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
|
46
|
+ </listener>
|
|
47
|
+
|
|
48
|
+ <filter>
|
|
49
|
+ <filter-name>encodingFilter</filter-name>
|
|
50
|
+ <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
|
|
51
|
+ <init-param>
|
|
52
|
+ <param-name>encoding</param-name>
|
|
53
|
+ <param-value>utf-8</param-value>
|
|
54
|
+ </init-param>
|
|
55
|
+ </filter>
|
|
56
|
+ <filter-mapping>
|
|
57
|
+ <filter-name>encodingFilter</filter-name>
|
|
58
|
+ <url-pattern>*.do</url-pattern>
|
|
59
|
+ </filter-mapping>
|
|
60
|
+
|
|
61
|
+ <!--<listener>-->
|
|
62
|
+ <!--<listener-class>com.litai.ContextLoaderListener</listener-class>-->
|
|
63
|
+ <!--</listener>-->
|
|
64
|
+
|
|
65
|
+ <filter>
|
|
66
|
+ <filter-name>HeaderFilter</filter-name>
|
|
67
|
+ <filter-class>com.th.demo.tools.HeaderFilter</filter-class>
|
|
68
|
+ </filter>
|
|
69
|
+ <filter-mapping>
|
|
70
|
+ <filter-name>HeaderFilter</filter-name>
|
|
71
|
+ <url-pattern>*.do</url-pattern>
|
|
72
|
+ </filter-mapping>
|
|
73
|
+
|
|
74
|
+ <servlet>
|
|
75
|
+ <servlet-name>spring-mvc</servlet-name>
|
|
76
|
+ <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
|
77
|
+ <init-param>
|
|
78
|
+ <param-name>contextConfigLocation</param-name>
|
|
79
|
+ <param-value>classpath:spring-mvc.xml</param-value>
|
|
80
|
+ </init-param>
|
|
81
|
+ </servlet>
|
|
82
|
+
|
|
83
|
+ <servlet-mapping>
|
|
84
|
+ <servlet-name>spring-mvc</servlet-name>
|
|
85
|
+ <url-pattern>*.do</url-pattern>
|
|
86
|
+ </servlet-mapping>
|
|
87
|
+
|
|
88
|
+ <servlet>
|
|
89
|
+ <servlet-name>ureportServlet</servlet-name>
|
|
90
|
+ <servlet-class>com.bstek.ureport.console.UReportServlet</servlet-class>
|
|
91
|
+ </servlet>
|
|
92
|
+ <servlet-mapping>
|
|
93
|
+ <servlet-name>ureportServlet</servlet-name>
|
|
94
|
+ <url-pattern>/ureport/*</url-pattern>
|
|
95
|
+ </servlet-mapping>
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+ <!--Modeler的Rest服务-->
|
|
101
|
+ <servlet>
|
|
102
|
+ <servlet-name>ModelRestServlet</servlet-name>
|
|
103
|
+ <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
|
104
|
+ <init-param>
|
|
105
|
+ <param-name>contextConfigLocation</param-name>
|
|
106
|
+ <param-value>classpath:spring-mvc-modeler.xml</param-value>
|
|
107
|
+ </init-param>
|
|
108
|
+ <load-on-startup>1</load-on-startup>
|
|
109
|
+ </servlet>
|
|
110
|
+ <servlet-mapping>
|
|
111
|
+ <servlet-name>ModelRestServlet</servlet-name>
|
|
112
|
+ <url-pattern>/service/*</url-pattern>
|
|
113
|
+ </servlet-mapping>
|
|
114
|
+ <!-- Rest接口 -->
|
|
115
|
+ <servlet>
|
|
116
|
+ <servlet-name>RestServlet</servlet-name>
|
|
117
|
+ <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
|
118
|
+ <init-param>
|
|
119
|
+ <param-name>contextConfigLocation</param-name>
|
|
120
|
+ <param-value>classpath:spring-mvc-rest.xml</param-value>
|
|
121
|
+ </init-param>
|
|
122
|
+ <load-on-startup>1</load-on-startup>
|
|
123
|
+ </servlet>
|
|
124
|
+ <servlet-mapping>
|
|
125
|
+ <servlet-name>RestServlet</servlet-name>
|
|
126
|
+ <url-pattern>/rest/*</url-pattern>
|
|
127
|
+ </servlet-mapping>
|
|
128
|
+</web-app>
|