除了包含hisenyuan之外的所有路径都拦截
这是一个正则表达式
<!-- Spring security -->
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>
org.springframework.web.filter.DelegatingFilterProxy
</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/^((?!hisenyuan).)*$</url-pattern>
</filter-mapping>
<!-- Spring security -->
网友评论