spring-interceptor-config.xml
1.68 KB
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema/beans"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">
<!-- secutity configs -->
<bean id="securityConfigMap" class="org.springframework.beans.factory.config.YamlMapFactoryBean">
<property name="resources">
<list>
<value>classpath:security-key.yml</value>
</list>
</property>
</bean>
<bean id="securityInterceptor" class="com.yoho.unions.interceptor.SecurityInterceptor">
<property name="keyConfigMap" ref="securityConfigMap" />
<property name="isDebugEnable" value="${is_debug_enable:true}" />
<property name="excludeUrls">
<list>
<value>/UnionRest/addUnion</value>
<value>/ActivateUnionRest/activateUnion</value>
<value>/ClickUnionRest/addUnion</value>
<value>/ClickUnionRest/addUnion4Special</value>
<value>/ClickUnionRest/addMonitor</value>
<value>/ActivateUnionRest/test</value>
<value>/MobvistaUnionRest/addUnion4Mobvista</value>
</list>
</property>
<property name="excludeMethods">
<list>
</list>
</property>
</bean>
</beans>