spring boot - @EnableResourceServer ResourceServerConfiguration Unsatisfied dependency -




on pivotal cloud foundry spring services v1.4 if use cloud services dependencies version 1.5.0 release , spring cloud dependencies dalston sr3, spring boot 1.5.6 rest service following annotations

@enableresourceserver @springbootapplication @enableautoconfiguration @enablecaching @enablediscoveryclient 

the services failed start following error

2017-08-21t16:00:28.784-07:00 [app/proc/web/0] [out] 2017-08-21 23:00:28.784 warn 14 --- [ main] ationconfigembeddedwebapplicationcontext : exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.unsatisfieddependencyexception: error creating bean name 'org.springframework.security.oauth2.config.annotation.web.configuration.resourceserverconfiguration': unsatisfied dependency expressed through field 'tokenservices'; nested exception org.springframework.beans.factory.unsatisfieddependencyexception: error creating bean name 'org.springframework.boot.autoconfigure.security.oauth2.resource.resourceservertokenservicesconfiguration$remotetokenservicesconfiguration$userinfotokenservicesconfiguration': unsatisfied dependency expressed through constructor parameter 1; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name 'userinforesttemplatefactory' defined in class path resource [org/springframework/boot/autoconfigure/security/oauth2/resource/resourceservertokenservicesconfiguration.class]: bean instantiation via factory method failed; nested exception org.springframework.beans.beaninstantiationexception: failed instantiate [org.springframework.boot.autoconfigure.security.oauth2.resource.userinforesttemplatefactory]: factory method 'userinforesttemplatefactory' threw exception; nested exception org.springframework.beans.factory.nouniquebeandefinitionexception: no qualifying bean of type 'org.springframework.security.oauth2.client.resource.oauth2protectedresourcedetails' available: expected single matching bean found 2: eurekaoauth2resourcedetails,configclientoauth2resourcedetails

the same code works cloud services dependencies version 1.2.1. release , spring cloud dependencies brixton sr7 , spring boot 1.5.3.

any ideas causing issue. thanks.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -