diff --git a/spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/FeignAutoConfiguration.java b/spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/FeignAutoConfiguration.java index 1caeee00..8b510e95 100644 --- a/spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/FeignAutoConfiguration.java +++ b/spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/FeignAutoConfiguration.java @@ -202,8 +202,8 @@ public class FeignAutoConfiguration { @Bean @ConditionalOnMissingBean(Client.class) - public Client feignClient() { - return new OkHttpClient(this.okHttpClient); + public Client feignClient(okhttp3.OkHttpClient client) { + return new OkHttpClient(client); } }