|
@@ -1,45 +1,45 @@
|
1
|
|
-<?xml version="1.0" encoding="UTF-8"?>
|
2
|
|
-<beans xmlns="http://www.springframework.org/schema/beans"
|
3
|
|
- xmlns:context="http://www.springframework.org/schema/context"
|
4
|
|
- xmlns:mvc="http://www.springframework.org/schema/mvc"
|
5
|
|
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
6
|
|
- xsi:schemaLocation="http://www.springframework.org/schema/beans
|
7
|
|
- http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
|
8
|
|
- http://www.springframework.org/schema/context
|
9
|
|
- http://www.springframework.org/schema/context/spring-context-3.0.xsd
|
10
|
|
- http://www.springframework.org/schema/mvc
|
11
|
|
- http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">
|
12
|
|
-
|
13
|
|
- <mvc:annotation-driven />
|
14
|
|
- <context:component-scan base-package="com.xxl.job.admin.controller" />
|
15
|
|
-
|
16
|
|
- <mvc:resources mapping="/favicon.ico" location="/favicon.ico" />
|
17
|
|
- <mvc:resources mapping="/static/**" location="/static/" />
|
18
|
|
- <mvc:resources mapping="/**/*.html" location="/" />
|
19
|
|
-
|
20
|
|
- <bean id="viewResolver" class="org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver">
|
21
|
|
- <property name="viewClass" value="org.springframework.web.servlet.view.freemarker.FreeMarkerView" />
|
22
|
|
- <property name="prefix" value="" />
|
23
|
|
- <property name="suffix" value=".ftl" />
|
24
|
|
- <property name="contentType" value="text/html;charset=UTF-8" />
|
25
|
|
- <property name="exposeSpringMacroHelpers" value="true" />
|
26
|
|
- <property name="exposeRequestAttributes" value="true" />
|
27
|
|
- <property name="exposeSessionAttributes" value="true" />
|
28
|
|
- <property name="requestContextAttribute" value="request" />
|
29
|
|
- <property name="cache" value="true" />
|
30
|
|
- <property name="order" value="0" />
|
31
|
|
- </bean>
|
32
|
|
-
|
33
|
|
- <mvc:interceptors>
|
34
|
|
- <mvc:interceptor>
|
35
|
|
- <mvc:mapping path="/**"/>
|
36
|
|
- <bean class="com.xxl.job.admin.controller.interceptor.PermissionInterceptor"/>
|
37
|
|
- </mvc:interceptor>
|
38
|
|
- <mvc:interceptor>
|
39
|
|
- <mvc:mapping path="/**"/>
|
40
|
|
- <bean class="com.xxl.job.admin.controller.interceptor.CookieInterceptor"/>
|
41
|
|
- </mvc:interceptor>
|
42
|
|
- </mvc:interceptors>
|
43
|
|
- <bean id="exceptionResolver" class="com.xxl.job.admin.controller.resolver.WebExceptionResolver" />
|
44
|
|
-
|
|
1
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+<beans xmlns="http://www.springframework.org/schema/beans"
|
|
3
|
+ xmlns:context="http://www.springframework.org/schema/context"
|
|
4
|
+ xmlns:mvc="http://www.springframework.org/schema/mvc"
|
|
5
|
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
6
|
+ xsi:schemaLocation="http://www.springframework.org/schema/beans
|
|
7
|
+ http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
|
|
8
|
+ http://www.springframework.org/schema/context
|
|
9
|
+ http://www.springframework.org/schema/context/spring-context-3.0.xsd
|
|
10
|
+ http://www.springframework.org/schema/mvc
|
|
11
|
+ http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">
|
|
12
|
+
|
|
13
|
+ <mvc:annotation-driven />
|
|
14
|
+ <context:component-scan base-package="com.xxl.job.admin.controller" />
|
|
15
|
+
|
|
16
|
+ <mvc:resources mapping="/favicon.ico" location="/favicon.ico" />
|
|
17
|
+ <mvc:resources mapping="/static/**" location="/static/" />
|
|
18
|
+ <mvc:resources mapping="/**/*.html" location="/" />
|
|
19
|
+
|
|
20
|
+ <bean id="viewResolver" class="org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver">
|
|
21
|
+ <property name="viewClass" value="org.springframework.web.servlet.view.freemarker.FreeMarkerView" />
|
|
22
|
+ <property name="prefix" value="" />
|
|
23
|
+ <property name="suffix" value=".ftl" />
|
|
24
|
+ <property name="contentType" value="text/html;charset=UTF-8" />
|
|
25
|
+ <property name="exposeSpringMacroHelpers" value="true" />
|
|
26
|
+ <property name="exposeRequestAttributes" value="true" />
|
|
27
|
+ <property name="exposeSessionAttributes" value="true" />
|
|
28
|
+ <property name="requestContextAttribute" value="request" />
|
|
29
|
+ <property name="cache" value="true" />
|
|
30
|
+ <property name="order" value="0" />
|
|
31
|
+ </bean>
|
|
32
|
+
|
|
33
|
+ <mvc:interceptors>
|
|
34
|
+ <mvc:interceptor>
|
|
35
|
+ <mvc:mapping path="/**"/>
|
|
36
|
+ <bean class="com.xxl.job.admin.controller.interceptor.PermissionInterceptor"/>
|
|
37
|
+ </mvc:interceptor>
|
|
38
|
+ <mvc:interceptor>
|
|
39
|
+ <mvc:mapping path="/**"/>
|
|
40
|
+ <bean class="com.xxl.job.admin.controller.interceptor.CookieInterceptor"/>
|
|
41
|
+ </mvc:interceptor>
|
|
42
|
+ </mvc:interceptors>
|
|
43
|
+ <bean id="exceptionResolver" class="com.xxl.job.admin.controller.resolver.WebExceptionResolver" />
|
|
44
|
+
|
45
|
45
|
</beans>
|