springboot oauth2 资源服务器运行时报错
Description:
Field configurers in org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerSecurityConfiguration required a bean of type ‘java.util.List’ that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Value(value=#{@autowiredWebSecurityConfigurersIgnoreParents.getWebSecurityConfigurers()})
Action:
Consider defining a bean of type ‘java.util.List’ in your configuration.
Process finished with exit code 1
原因: application中添加了注解@EnableAuthorizationServer,但没有实现类继承extends AuthorizationServerConfigurerAdapter
更多推荐
Consider defining a bean of type ‘java.util.List‘ in your configuration
发布评论