✅ 操作成功!

Consider defining a bean of type ‘java.util.List‘ in your configuration

发布时间:2023-06-12 作者:admin 来源:文学

Consider defining a bean of type ‘java.util.List‘ in your configuration

Consider defining a bean of type ‘java.util.List‘ in your configuration

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

👁️ 阅读量:0