1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<beans xmlns =" http://www.springframework.org/schema/beans"
3
- xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
4
- xmlns:p=" http://www.springframework.org/schema/p"
5
- xmlns:context=" http://www.springframework.org/schema/context"
6
- xmlns:mvc=" http://www.springframework.org/schema/mvc"
7
- xsi:schemaLocation=" http://www.springframework.org/schema/beans
3
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4
+ xmlns : p =" http://www.springframework.org/schema/p"
5
+ xmlns : context =" http://www.springframework.org/schema/context"
6
+ xmlns : mvc =" http://www.springframework.org/schema/mvc"
7
+ xsi : schemaLocation =" http://www.springframework.org/schema/beans
8
8
http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
9
9
http://www.springframework.org/schema/context
10
10
http://www.springframework.org/schema/context/spring-context-3.2.xsd
11
11
http://www.springframework.org/schema/mvc
12
12
http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd" >
13
13
14
- <context : component-scan base-package =" org.owasp.webgoat.controller, org.owasp.webgoat.lessons, org.owasp.webgoat.service" />
14
+ <context : component-scan base-package =" org.owasp.webgoat.controller, org.owasp.webgoat.lessons, org.owasp.webgoat.service" />
15
15
16
- <!--
17
- put custom validators here. E.g.:
18
- <bean class="org.owasp.webgoat.validators.MyCustomValidator" />
19
- -->
16
+ <!--
17
+ put custom validators here. E.g.:
18
+ <bean class="org.owasp.webgoat.validators.MyCustomValidator" />
19
+ -->
20
20
21
- <!-- Activates various annotations to be detected in bean classes -->
22
- <context : annotation-config />
21
+ <!-- Activates various annotations to be detected in bean classes -->
22
+ <context : annotation-config />
23
23
24
- <!-- Configures the annotation-driven Spring MVC Controller programming model. -->
25
- <mvc : annotation-driven />
24
+ <!-- Configures the annotation-driven Spring MVC Controller programming model. -->
25
+ <mvc : annotation-driven />
26
26
27
- <!-- Import Tiles-related configuration -->
28
- <!-- import resource="tiles-context.xml" /-->
27
+ <!-- Import Tiles-related configuration -->
28
+ <!-- import resource="tiles-context.xml" /-->
29
29
30
30
31
- <!-- Declare a view resolver -->
32
- <!-- Take note of the order. Since we're using TilesViewResolver as well
33
- We need to define which ViewResolver is called first.
34
- We chose this InternalResourceViewResolver to be at the bottom order -->
35
- <bean
36
- id=" viewResolver"
37
- class=" org.springframework.web.servlet.view.InternalResourceViewResolver"
38
- p:prefix=" /WEB-INF/pages/"
39
- p:suffix=" .jsp"
40
- p:order=" 1" />
31
+ <!-- Declare a view resolver -->
32
+ <!-- Take note of the order. Since we're using TilesViewResolver as well
33
+ We need to define which ViewResolver is called first.
34
+ We chose this InternalResourceViewResolver to be at the bottom order -->
35
+ <bean
36
+ id =" viewResolver"
37
+ class =" org.springframework.web.servlet.view.InternalResourceViewResolver"
38
+ p : prefix =" /WEB-INF/pages/"
39
+ p : suffix =" .jsp"
40
+ p : order =" 1" />
41
+
42
+ <mvc : interceptors >
43
+ <bean id =" webContentInterceptor" class =" org.springframework.web.servlet.mvc.WebContentInterceptor" >
44
+ <property name =" cacheSeconds" value =" 0" />
45
+ <property name =" useExpiresHeader" value =" true" />
46
+ <property name =" useCacheControlHeader" value =" true" />
47
+ <property name =" useCacheControlNoStore" value =" true" />
48
+ </bean >
49
+ </mvc : interceptors >
41
50
42
51
43
- <!-- Register the Customer.properties
44
- <bean id="messageSource"
45
- class="org.springframework.context.support.ResourceBundleMessageSource">
46
- <property name="basename" value="org/owasp/webgoat/properties/Customer" />
47
- </bean>
48
- -->
52
+ <!-- Register the Customer.properties
53
+ <bean id="messageSource"
54
+ class="org.springframework.context.support.ResourceBundleMessageSource">
55
+ <property name="basename" value="org/owasp/webgoat/properties/Customer" />
56
+ </bean>
57
+ -->
49
58
50
59
</beans >
0 commit comments