spring-webmvc.xml
3.5 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:util="http://www.springframework.org/schema/util" xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:task="http://www.springframework.org/schema/task"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.1.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.1.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task.xsd">
<mvc:resources mapping="/easyui/**" location="/easyui/" />
<mvc:resources mapping="/html/**" location="/html/" />
<mvc:resources mapping="/css/**" location="/css/" />
<mvc:resources mapping="/images/**" location="/images/" />
<mvc:resources mapping="/js/**" location="/js/" />
<!--<bean id="urlInterceptor" class="com.yohobuy.platform.common.interceptor.UrlInterceptor">
<!– 一级免过滤列表(不需要登录,就可以访问的url) –>
<property name="firstNoFilterList">
<list>
<value>loginForPid.do</value>
<value>platformLogin.do</value>
<value>queryBrands.do</value>
<value>removeLoginUser.do</value>
<value>logout.do</value>
<value>addChannelProduct.do</value>
<value>addChannelProductByBrand.do</value>
<value>selectAll.do</value>
<value>synChannelProduct</value>
<value>addChannelProductCoupon.do</value>
<value>updateLinkFlag.do</value>
<value>updateTmallId.do</value>
<value>repairShopNames</value>
<value>backList.do</value>
<value>channelProductTmpSync.do</value>
<value>export.do</value>
</list>
</property>
<!– 只要登录,就能访问的url –>
<property name="secondNoFilterList">
<list>
<value>NoFilterController.do</value>
</list>
</property>
<property name="superManagerList">
<list>
<value>admin</value>
</list>
</property>
</bean>
<mvc:interceptors>
<ref bean="urlInterceptor" />
<ref bean="threadProfileInterceptor"/>
</mvc:interceptors>-->
<bean id="requestFactory" class="org.springframework.http.client.SimpleClientHttpRequestFactory">
<property name="readTimeout" value="60000"/>
<property name="connectTimeout" value="10000"/>
</bean>
<bean id="restTemplate" class="org.springframework.web.client.RestTemplate">
<constructor-arg ref="requestFactory"/>
<!-- <property name="messageConverters">
<list>
<bean class="org.springframework.http.converter.xml.SourceHttpMessageConverter"/>
<bean class="org.springframework.http.converter.FormHttpMessageConverter"/>
<bean class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter"/>
</list>
</property> -->
</bean>
</beans>