16 lines
572 B
Markdown
16 lines
572 B
Markdown
|
设置是否加载
|
||
|
|
||
|
```java
|
||
|
@Bean
|
||
|
@ConditionalOnProperty(
|
||
|
value = {"feign.compression.response.enabled"},
|
||
|
havingValue = "true"
|
||
|
)
|
||
|
public CloseableHttpClient customHttpClient(HttpClientConnectionManager httpClientConnectionManager, FeignHttpClientProperties httpClientProperties) {
|
||
|
HttpClientBuilder builder = HttpClientBuilder.create().disableCookieManagement().useSystemProperties();
|
||
|
this.httpClient = this.createClient(builder, httpClientConnectionManager, httpClientProperties);
|
||
|
return this.httpClient;
|
||
|
}
|
||
|
```
|
||
|
|