请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

配置BrowerSecurityConfig后系统报错

错误日志 Error creating bean with name ‘springSecurityFilterChain’ defined in org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.servlet.Filter]: Factory method ‘springSecurityFilterChain’ threw exception; nested exception is java.lang.IllegalStateException: An incomplete mapping was found for [org.springframework.security.web.util.matcher.AnyRequestMatcher@1]. Try completing it with something like requestUrls()..hasRole(‘USER’)

正在回答 回答被采纳积分+3

1回答

JoJo 2019-03-04 14:12:44

这是说对AnyRequest的映射配置不完整,具体要看你的配置代码,试试在权限控制段里加上.anyRequest().permitAll()

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信