我使用spring mvc拦截器来保证安全性,但它也在检查css和js,但我想忽略css和js的检查。
我在我的XML文件中截取了如下样式:
<mvc:interceptors>
<bean class="com.nfdil.loyalty.web.interceptor.SecurityManagerInterceptor" />
</mvc:interceptors>如何忽略对css和js的检查?
发布于 2017-02-17 22:07:39
你试过这个吗?
<mvc:interceptor>
<mvc:mapping path="/**"/>
<mvc:exclude-mapping path="/static/**"/>
<bean class="com.nfdil.loyalty.web.interceptor.SecurityManagerInterceptor" />
</mvc:interceptor>您可以找到更详细的文档here
https://stackoverflow.com/questions/42290669
复制相似问题