Commit a2dd7ee9 by guojuxing

拦截过滤

parent ef7b4b7c
...@@ -4,16 +4,28 @@ ...@@ -4,16 +4,28 @@
xmlns:aop="http://www.springframework.org/schema/aop" xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:context="http://www.springframework.org/schema/context" xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd http://www.springframework.org/schema/beans/spring-beans-5.1.7.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd http://www.springframework.org/schema/mvc/spring-mvc-5.1.7.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.1.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> http://www.springframework.org/schema/aop/spring-aop-5.1.7.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
<mvc:interceptors> <mvc:interceptors>
<bean class="com.gic.enterprise.interceptor.RequestInteceptor"></bean> <mvc:interceptor>
<bean class="com.gic.commons.interceptor.HeaderTagInterceptor"/> <!-- 拦截所有的请求,这个必须写在前面,也就是写在【不拦截】的上面 -->
<mvc:mapping path="/**" />
<!-- 但是排除下面这些,也就是不拦截请求 -->
<mvc:exclude-mapping path="/gic-auth-web/login" />
<mvc:exclude-mapping path="/gic-auth-web/logout" />
<mvc:exclude-mapping path="/gic-auth-web/list-enterprise-by-phone" />
<mvc:exclude-mapping path="/gic-auth-web/login-user-menu" />
<mvc:exclude-mapping path="/gic-auth-web/login-user-operation-item" />
<bean class="com.gic.enterprise.interceptor.RequestInteceptor"></bean>
</mvc:interceptor>
<bean class="com.gic.enterprise.interceptor.AuthInterceptor"></bean> <bean class="com.gic.enterprise.interceptor.AuthInterceptor"></bean>
<bean class="com.gic.commons.interceptor.HeaderTagInterceptor"/>
<bean class="com.gic.commons.interceptor.HeaderSignInterceptor"></bean> <bean class="com.gic.commons.interceptor.HeaderSignInterceptor"></bean>
</mvc:interceptors> </mvc:interceptors>
</beans> </beans>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment