Commit 22ba8b537cc704a652991abfd0cc69199a14d32d
1 parent
10bda53833
Exists in
master
and in
6 other branches
update code
Showing 1 changed file with 58 additions and 0 deletions
platform-msg-generate/src/main/webapp/WEB-INF/web.xml
View file @
22ba8b5
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor | |
3 | + license agreements. See the NOTICE file distributed with this work for additional | |
4 | + information regarding copyright ownership. The ASF licenses this file to | |
5 | + you under the Apache License, Version 2.0 (the "License"); you may not use | |
6 | + this file except in compliance with the License. You may obtain a copy of | |
7 | + the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required | |
8 | + by applicable law or agreed to in writing, software distributed under the | |
9 | + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS | |
10 | + OF ANY KIND, either express or implied. See the License for the specific | |
11 | + language governing permissions and limitations under the License. --> | |
12 | +<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
13 | + version="2.5" | |
14 | + xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> | |
15 | + | |
16 | + <context-param> | |
17 | + <param-name>contextConfigLocation</param-name> | |
18 | + <param-value> | |
19 | + classpath*:/spring/applicationContext.xml | |
20 | + </param-value> | |
21 | + </context-param> | |
22 | + <context-param> | |
23 | + <param-name>webAppRootKey</param-name> | |
24 | + <param-value>webapp.platform-msg-generate</param-value> | |
25 | + </context-param> | |
26 | + | |
27 | + <session-config> | |
28 | + <session-timeout>60</session-timeout> | |
29 | + </session-config> | |
30 | + <context-param> | |
31 | + <param-name>log4jConfigLocation</param-name> | |
32 | + <param-value>classpath:log4j_config.xml</param-value> | |
33 | + </context-param> | |
34 | + <context-param> | |
35 | + <param-name>log4jRefreshInterval</param-name> | |
36 | + <param-value>60000</param-value> | |
37 | + </context-param> | |
38 | + <servlet> | |
39 | + <servlet-name>dispatcher</servlet-name> | |
40 | + <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> | |
41 | + <init-param> | |
42 | + <param-name>contextConfigLocation</param-name> | |
43 | + <param-value>classpath*:/spring/applicationContext-mvc.xml</param-value> | |
44 | + </init-param> | |
45 | + <load-on-startup>1</load-on-startup> | |
46 | + </servlet> | |
47 | + | |
48 | + <servlet-mapping> | |
49 | + <servlet-name>dispatcher</servlet-name> | |
50 | + <url-pattern>/</url-pattern> | |
51 | + </servlet-mapping> | |
52 | + <listener> | |
53 | + <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> | |
54 | + </listener> | |
55 | + <listener> | |
56 | + <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class> | |
57 | + </listener> | |
58 | +</web-app> |