|
1 <?xml version="1.0" encoding="UTF-8"?> |
|
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 |
|
8 http://www.springframework.org/schema/beans/spring-beans-3.2.xsd |
|
9 http://www.springframework.org/schema/context |
|
10 http://www.springframework.org/schema/context/spring-context-3.2.xsd |
|
11 http://www.springframework.org/schema/mvc |
|
12 http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd"> |
|
13 |
|
14 <!-- **************************************************************** --> |
|
15 <!-- RESOURCE FOLDERS CONFIGURATION --> |
|
16 <!-- Dispatcher configuration for serving static resources --> |
|
17 <!-- **************************************************************** --> |
|
18 <mvc:resources location="/static/" mapping="/static/**" /> |
|
19 <mvc:resources location="/lib/" mapping="/lib/**" /> |
|
20 <mvc:resources location="/_firebug/" mapping="/_firebug/**" /> |
|
21 <!--mvc:resources location="/css/" mapping="/css/**" /--> |
|
22 |
|
23 <!-- **************************************************************** --> |
|
24 <!-- SPRING ANNOTATION PROCESSING --> |
|
25 <!-- **************************************************************** --> |
|
26 <mvc:annotation-driven> |
|
27 <mvc:argument-resolvers> |
|
28 <bean class="org.springframework.data.web.PageableArgumentResolver"> |
|
29 <property name="prefix" value="p"/> |
|
30 </bean> |
|
31 </mvc:argument-resolvers> |
|
32 </mvc:annotation-driven> |
|
33 <mvc:interceptors> |
|
34 <bean class="org.iri_research.renkan.controller.VersionHandlerInterceptor"/> |
|
35 </mvc:interceptors> |
|
36 |
|
37 <context:component-scan |
|
38 base-package="org.iri_research.renkan.controller" /> |
|
39 |
|
40 <bean id="viewResolver" |
|
41 class="org.springframework.web.servlet.view.UrlBasedViewResolver"> |
|
42 <property name="viewClass" |
|
43 value="org.springframework.web.servlet.view.JstlView" /> |
|
44 <property name="prefix" value="/WEB-INF/jsp/" /> |
|
45 <property name="suffix" value=".jsp" /> |
|
46 <property name="order" value="2" /> |
|
47 <property name="redirectHttp10Compatible" value="false" /> |
|
48 </bean> |
|
49 |
|
50 <bean id="templateResolver" class="org.thymeleaf.templateresolver.ServletContextTemplateResolver"> |
|
51 <property name="prefix" value="/WEB-INF/templates/" /> |
|
52 <property name="suffix" value=".html" /> |
|
53 <property name="templateMode" value="HTML5" /> |
|
54 <property name="characterEncoding" value="UTF-8" /> |
|
55 <property name="cacheable" value="false"/> |
|
56 </bean> |
|
57 |
|
58 <bean id="templateEngine" class="org.thymeleaf.spring3.SpringTemplateEngine"> |
|
59 <property name="templateResolver" ref="templateResolver" /> |
|
60 <property name="additionalDialects"> |
|
61 <set> |
|
62 <bean class="org.thymeleaf.extras.springsecurity3.dialect.SpringSecurityDialect"/> |
|
63 </set> |
|
64 </property> |
|
65 </bean> |
|
66 |
|
67 <bean class="org.thymeleaf.spring3.view.ThymeleafViewResolver"> |
|
68 <property name="templateEngine" ref="templateEngine" /> |
|
69 <property name="order" value="1" /> |
|
70 <!--property name="viewNames" value="*.html,*.xhtml" /--> |
|
71 <property name="characterEncoding" value="UTF-8"/> |
|
72 <property name="redirectHttp10Compatible" value="false" /> |
|
73 </bean> |
|
74 </beans> |