SpringMVC中拦截器的使用

来源:互联网 发布:企业 如何优化 编辑:程序博客网 时间:2024/05/17 22:52
<mvc:interceptors><mvc:interceptor>
<span style="white-space:pre"></span><!-- 拦截所有 --><mvc:mapping path="/**" />
<span style="white-space:pre"></span><pre name="code" class="java"><span style="white-space:pre"></span><!-- 拦截所有 (<span style="font-family: Arial, Helvetica, sans-serif;">exclude-mapping</span><span style="font-family: Arial, Helvetica, sans-serif;">)指出哪些不做拦截--></span>
<mvc:exclude-mapping path="/static/**/*" /><mvc:exclude-mapping path="/*/**/login" /><mvc:exclude-mapping path="/*/**/logout" /><mvc:exclude-mapping path="/vicmmam/api/disk/get" /><mvc:exclude-mapping path="/vicmmam/mediaAsset/uploadPosterByPlayer" /><!-- <mvc:exclude-mapping path="/vicmmam/api/*/*" /> --><mvc:exclude-mapping path="/vicmmam/repositoryManager/add" /><mvc:exclude-mapping path="/*/workflowAutoTask/*" /><mvc:exclude-mapping path="/vicmmam/ws/*" /><bean id="aclInterceptor"class="cn.videoworks.commons.webdev.interceptor.AclInterceptor" /></mvc:interceptor><mvc:interceptor><mvc:mapping path="/**" /><mvc:exclude-mapping path="/static/**/*" /><bean id="requestAnalyzerInterceptor"class="cn.videoworks.vicmmam.interceptor.RequestAnalyzerInterceptor" /></mvc:interceptor></mvc:interceptors>

0 0