springMVC拦截器简单配置

<!-- 拦截器 -->
    <mvc:interceptors>
        <mvc:interceptor>
            <!-- 拦截所有。action结尾的请求 -->
            <mvc:mapping path="/**/*.action"/>            
            <bean class="com.interceptor.WebManageInterceptor"></bean>
        </mvc:interceptor>
    </mvc:interceptors>

?匹配任何单字符

*匹配0或者任意数量的字符

**匹配0或者更多的目录

原文地址:https://www.cnblogs.com/linkstar/p/5357006.html