You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
2.1 KiB
43 lines
2.1 KiB
<?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:mvc="http://www.springframework.org/schema/mvc"
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
|
|
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
|
|
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
|
|
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
|
|
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
|
|
|
|
|
|
<mvc:interceptors>
|
|
<!-- session超时 -->
|
|
<mvc:interceptor>
|
|
<mvc:mapping path="/**"/>
|
|
<bean class="com.cjy.interceptor.AdminInterceptor">
|
|
<property name="loginUrl" value="/html/back/login.html"/>
|
|
<property name="allowUrls">
|
|
<list>
|
|
<!-- 如果请求中包含以下路径,则不进行拦截 -->
|
|
<value>/login</value>
|
|
<value>/js</value>
|
|
<value>/css</value>
|
|
<value>/image</value>
|
|
<value>/img</value>
|
|
<value>/images</value>
|
|
<value>/index</value>
|
|
<value>/html</value>
|
|
<value>/mobile</value>
|
|
<value>/upload</value>
|
|
<!--<value>/stat</value>-->
|
|
<value>/xiongan.html</value>
|
|
<value>/handan.html</value>
|
|
<value>/usersecret.html</value>
|
|
</list>
|
|
</property>
|
|
</bean>
|
|
</mvc:interceptor>
|
|
</mvc:interceptors>
|
|
|
|
|
|
</beans> |