1:拦截器注册配置,spring-mvc.xml
- <mvc:interceptors>
- <mvc:interceptor>
- <mvc:mapping path="${adminPath}/**" />
- <mvc:exclude-mapping path="${adminPath}/"/>
- <mvc:exclude-mapping path="${adminPath}/login"/>
- <bean class="com.thinkgem.jeesite.modules.sys.interceptor.LogInterceptor" />
- </mvc:interceptor>
- </mvc:interceptors>
2:Java代码,LogInterceptor.java