[REQ] [SPRING-CLOUD] Generates deprecated code
Created by: MelleD
Is your feature request related to a problem? Please describe.
Deprecated code configurations are generated and spring security depedencies are old.
See https://github.com/spring-cloud/spring-cloud-openfeign/issues/417
@Bean
@ConditionalOnProperty(xyz.client-id")
public OAuth2FeignRequestInterceptor requestInterceptor(OAuth2ClientContext oAuth2ClientContext) {
return new OAuth2FeignRequestInterceptor(oAuth2ClientContext, resourceDetails());
}
@Bean
@ConditionalOnProperty("xyz.client-id")
public OAuth2ClientContext oAuth2ClientContext() {
return new DefaultOAuth2ClientContext();
}
@Bean
@ConditionalOnProperty("xyz.client-id")
@ConfigurationProperties("xyz")
public ClientCredentialsResourceDetails resourceDetails() {
ClientCredentialsResourceDetails details = new ClientCredentialsResourceDetails();
details.setAccessTokenUri("https://token");
return details;
}
Describe the solution you'd like
It should support the new classes and configurations