面对未加载userInfoRestTemplateFactory的问题,因为@ConditionalOnMissingBean

时间:2018-10-15 10:50:18

标签: java spring-boot

我正在使用https://github.com/TechPrimers/spring-security-oauth-example中的代码。但是我明白了

org.springframework.boot.autoconfigure.security.oauth2.resource.UserInfoRestTemplateFactory' that could not be found - Bean method 'userInfoRestTemplateFactory' not loaded because @ConditionalOnMissingBean (types: org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerEndpointsConfiguration; SearchStrategy: all) found bean 'org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerEndpointsConfiguration'   Action:  Consider revisiting the conditions above or defining a bean of type 'org.springframework.boot.autoconfigure.security.oauth2.resource.UserInfoRestTemplateFactory' in your configuration.

0 个答案:

没有答案
相关问题