spring-webmvc.xml 3.5 KB
<?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">
		&lt;!&ndash; 一级免过滤列表(不需要登录,就可以访问的url) &ndash;&gt;
		<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>
		&lt;!&ndash; 只要登录,就能访问的url &ndash;&gt;
		<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>