-
Notifications
You must be signed in to change notification settings - Fork 0
/
web.xml
124 lines (110 loc) · 4.78 KB
/
web.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2011 Brown Bag Consulting.
~ This file is part of the ExpressUI project.
~ Author: Juan Osuna
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Affero General Public License Version 3
~ as published by the Free Software Foundation with the addition of the
~ following permission added to Section 15 as permitted in Section 7(a):
~ FOR ANY PART OF THE COVERED WORK IN WHICH THE COPYRIGHT IS OWNED BY
~ Brown Bag Consulting, Brown Bag Consulting DISCLAIMS THE WARRANTY OF
~ NON INFRINGEMENT OF THIRD PARTY RIGHTS.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Affero General Public License for more details.
~
~ You should have received a copy of the GNU Affero General Public License
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
~
~ The interactive user interfaces in modified source and object code versions
~ of this program must display Appropriate Legal Notices, as required under
~ Section 5 of the GNU Affero General Public License.
~
~ You can be released from the requirements of the license by purchasing
~ a commercial license. Buying such a license is mandatory as soon as you
~ develop commercial activities involving the ExpressUI software without
~ disclosing the source code of your own applications. These activities
~ include: offering paid services to customers as an ASP, providing
~ services from a web application, shipping ExpressUI with a closed
~ source product.
~
~ For more information, please contact Brown Bag Consulting at this
~ address: juan@brownbagconsulting.com.
-->
<web-app version="2.5" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee">
<display-name>Sample Application</display-name>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath:/spring/applicationContext-properties.xml
classpath:/spring/applicationContext-data-access.xml
classpath:/spring/applicationContext-core-scan.xml
classpath:/spring/applicationContext-messages.xml
classpath:/spring/applicationContext-security.xml
classpath:/spring/applicationContext-domain-scan.xml
classpath:/spring/applicationContext-scan.xml
</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!-- Spring listener for web-scopes (request, session) -->
<listener>
<listener-class>
org.springframework.web.context.request.RequestContextListener
</listener-class>
</listener>
<!--
- Publishes events for session creation and destruction through the application
- context. Optional unless concurrent session control is being used.
-->
<listener>
<listener-class>org.springframework.security.web.session.HttpSessionEventPublisher</listener-class>
</listener>
<servlet>
<servlet-name>dispatcher</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:/spring/dispatcher-servlet.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>dispatcher</servlet-name>
<!--<url-pattern>/*</url-pattern>-->
<url-pattern>/mvc/*</url-pattern>
<url-pattern>/app/*</url-pattern>
<url-pattern>/VAADIN/*</url-pattern>
</servlet-mapping>
<filter>
<filter-name>OpenSessionInViewFilter</filter-name>
<filter-class>
org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>OpenSessionInViewFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<session-config>
<session-timeout>60</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
</welcome-file-list>
</web-app>