Browse Source

Use OK Http client bean instead of instance variable. Fixes #46

pull/50/head
Ryan Baxter 6 years ago
parent
commit
7dcb696ec4
  1. 4
      spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/FeignAutoConfiguration.java

4
spring-cloud-openfeign-core/src/main/java/org/springframework/cloud/openfeign/FeignAutoConfiguration.java

@ -202,8 +202,8 @@ public class FeignAutoConfiguration {
@Bean @Bean
@ConditionalOnMissingBean(Client.class) @ConditionalOnMissingBean(Client.class)
public Client feignClient() { public Client feignClient(okhttp3.OkHttpClient client) {
return new OkHttpClient(this.okHttpClient); return new OkHttpClient(client);
} }
} }

Loading…
Cancel
Save