Spring Security bug记录:antMatchers找不到符号(已解决)
原因:
新版本 Spring Security 6.0 已经弃用 antMatchers()
解决:
用 requestMatchers() 替代 antMatchers() 即可
参考链接:
stackoverflow-Cannot resolve method ‘antMatchers()’ in AuthorizationManagerRequestMatcherRegistry
新版本 Spring Security 6.0 已经弃用 antMatchers()
用 requestMatchers() 替代 antMatchers() 即可
stackoverflow-Cannot resolve method ‘antMatchers()’ in AuthorizationManagerRequestMatcherRegistry