码迷,mamicode.com
首页 > 编程语言 > 详细

springMVC拦截器简单配置

时间:2016-04-05 22:37:03      阅读:134      评论:0      收藏:0      [点我收藏+]

标签:

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

 

?匹配任何单字符

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

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

技术分享

springMVC拦截器简单配置

标签:

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!