错误日志 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’)
Spring Security技术栈,REST风格开发常见接口,独立开发认证授权模块保证REST服务安全
了解课程