DelegatingFilterProxy / springSecurityFilterChain - 受保护的路径应该是/ *还是/ **?

时间:2014-07-29 11:23:42

标签: spring spring-security

似乎为“/ **”,但Spring安全性参考中的示例使用“/*”。

<filter>
    <filter-name>springSecurityFilterChain</filter-name>
    <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>

</filter>
<filter-mapping>
    <filter-name>springSecurityFilterChain</filter-name>
    <!-- protected URL path -->
    <url-pattern>/*</url-pattern>
</filter-mapping>

0 个答案:

没有答案