首页 > 编程语言 > 详细

springMVC拦截器简单配置

时间:2016-04-05 22:36:37      阅读:157      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!