提交 | 用户 | 时间
|
58d006
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
A |
2 |
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" |
|
3 |
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_3_0.xsd"> |
|
4 |
<display-name>mandi</display-name> |
|
5 |
<context-param> |
|
6 |
<param-name>contextConfigLocation</param-name> |
|
7 |
<param-value>classpath:applicationcontext.xml</param-value> |
|
8 |
</context-param> |
|
9 |
<filter> |
|
10 |
<filter-name>encodingfilter</filter-name> |
|
11 |
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> |
|
12 |
<init-param> |
|
13 |
<param-name>encoding</param-name> |
|
14 |
<param-value>utf-8</param-value> |
|
15 |
</init-param> |
|
16 |
<init-param> |
|
17 |
<param-name>forceEncoding</param-name> |
|
18 |
<param-value>true</param-value> |
|
19 |
</init-param> |
|
20 |
</filter> |
|
21 |
<filter-mapping> |
|
22 |
<filter-name>encodingfilter</filter-name> |
|
23 |
<url-pattern>/*</url-pattern> |
|
24 |
</filter-mapping> |
|
25 |
<listener> |
|
26 |
<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class> |
|
27 |
</listener> |
|
28 |
<listener> |
|
29 |
<!--启动webapplicationcontext--> |
|
30 |
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> |
|
31 |
</listener> |
|
32 |
<!-- |
|
33 |
<servlet> |
|
34 |
<servlet-name>Faces Servlet</servlet-name> |
|
35 |
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class> |
|
36 |
<load-on-startup>1</load-on-startup> |
|
37 |
</servlet> |
|
38 |
|
|
39 |
<servlet-mapping> |
|
40 |
<servlet-name>Faces Servlet</servlet-name> |
|
41 |
<url-pattern>*.jsf</url-pattern> |
|
42 |
</servlet-mapping> |
|
43 |
--> |
|
44 |
<servlet> |
|
45 |
<servlet-name>spring</servlet-name> |
|
46 |
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> |
|
47 |
</servlet> |
|
48 |
<servlet-mapping> |
|
49 |
<servlet-name>spring</servlet-name> |
|
50 |
<url-pattern>*.htm</url-pattern> |
|
51 |
</servlet-mapping> |
|
52 |
|
|
53 |
|
|
54 |
<!-- CXF的Servlet --> |
|
55 |
<servlet> |
|
56 |
<servlet-name>cxf</servlet-name> |
|
57 |
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class> |
|
58 |
<load-on-startup>1</load-on-startup> |
|
59 |
</servlet> |
|
60 |
<servlet-mapping> |
|
61 |
<servlet-name>cxf</servlet-name> |
|
62 |
<url-pattern>/ws/*</url-pattern> |
|
63 |
</servlet-mapping> |
|
64 |
|
|
65 |
|
|
66 |
<servlet> |
|
67 |
<servlet-name>Kaptcha</servlet-name> |
|
68 |
<servlet-class>com.google.code.kaptcha.servlet.KaptchaServlet</servlet-class> |
|
69 |
<init-param> |
|
70 |
<param-name>kaptcha.border</param-name> |
|
71 |
<param-value>no</param-value> |
|
72 |
</init-param> |
|
73 |
<init-param> |
|
74 |
<param-name>kaptcha.image.width</param-name> |
|
75 |
<param-value>200</param-value> |
|
76 |
</init-param> |
|
77 |
<init-param> |
|
78 |
<param-name>kaptcha.image.height</param-name> |
|
79 |
<param-value>50</param-value> |
|
80 |
</init-param> |
|
81 |
<!-- <init-param> |
|
82 |
<param-name>kaptcha.textproducer.impl</param-name> |
|
83 |
<param-value>com.mandi.system.utils.KaptchaTextutil</param-value> |
|
84 |
</init-param> --> |
|
85 |
<init-param> |
|
86 |
<param-name>kaptcha.textproducer.font.size</param-name> |
|
87 |
<param-value>40</param-value> |
|
88 |
</init-param> |
|
89 |
<init-param> |
|
90 |
<param-name>kaptcha.textproducer.char.space</param-name> |
|
91 |
<param-value>5</param-value> |
|
92 |
</init-param> |
|
93 |
<init-param> |
|
94 |
<param-name>kaptcha.textproducer.char.length</param-name> |
|
95 |
<param-value>4</param-value> |
|
96 |
</init-param> |
|
97 |
<init-param> |
|
98 |
<param-name>kaptcha.textproducer.font.color</param-name> |
|
99 |
<param-value>blue</param-value> |
|
100 |
<!-- <param-value>1,174,239</param-value> --> |
|
101 |
</init-param> |
|
102 |
</servlet> |
|
103 |
<servlet-mapping> |
|
104 |
<servlet-name>Kaptcha</servlet-name> |
|
105 |
<url-pattern>/kaptcha/kaptcha/kaptcha.ktc</url-pattern> |
|
106 |
</servlet-mapping> |
|
107 |
|
|
108 |
<session-config> |
|
109 |
<session-timeout>60</session-timeout> |
|
110 |
</session-config> |
|
111 |
<welcome-file-list> |
|
112 |
<welcome-file>login.jsf</welcome-file> |
|
113 |
</welcome-file-list> |
|
114 |
</web-app> |