org.springframework.cloud.openfeign.clientconfig.OkHttpFeignConfigurationw
conflicts with
org.springframework.cloud.openfeign.FeignAutoConfiguration
OkHttpFeignConfigurationw stops FeignAutoConfiguration
Version v3.0.0
Comment From: OlgaMaciaszek
Hello, @ctrotto-celticintl-com, please specify what you mean by "conflicts". You can see a sample for Spring Cloud OpenFeign with OkHttp here.
If you still think there's an issue, please provide a full description of the issue, including the steps to reproduce it, the expected result and the actual result, as well as a minimal, complete, verifiable example that reproduces the issue.
Comment From: ctrotto-celticintl-com
org.springframework.cloud.openfeign.clientconfig.OkHttpFeignConfiguration gets scanned first.
So this happens
@Bean
public okhttp3.OkHttpClient client(OkHttpClientFactory httpClientFactory, ConnectionPool connectionPool,
FeignHttpClientProperties httpClientProperties) {
Now in org.springframework.cloud.openfeign.FeignAutoConfiguration this gets blocked(never happens)
@Configuration(proxyBeanMethods = false)
@ConditionalOnClass(OkHttpClient.class)
**@ConditionalOnMissingBean(okhttp3.OkHttpClient.class)**
@ConditionalOnProperty("feign.okhttp.enabled")
protected static class OkHttpFeignConfiguration {
Comment From: OlgaMaciaszek
OkHttpFeignConfiguration is used for load-balanced scenarios, while the config in FeignAutoConfiguration is used for non-loadbalanced clients.