请稍等 ...
×

采纳答案成功!

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

配置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下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号