在Github上发布的Spring安全示例中找到了解决方案。
WebSecurityConfigurerAdapter有一个重载的
configure消息,该消息以
WebSecurity参数为参数,接受要忽略的请求的蚂蚁匹配器。
@Overridepublic void configure(WebSecurity web) throws Exception { web.ignoring().antMatchers("/authFailure");}
在Github上发布的Spring安全示例中找到了解决方案。
WebSecurityConfigurerAdapter有一个重载的
configure消息,该消息以
WebSecurity参数为参数,接受要忽略的请求的蚂蚁匹配器。
@Overridepublic void configure(WebSecurity web) throws Exception { web.ignoring().antMatchers("/authFailure");}