提交 d7a6cc91 authored 作者: 刘海泉's avatar 刘海泉

去掉配置

上级 2f1f2885
package com.clx.performance.feign; package com.clx.performance.feign;
import okhttp3.ConnectionPool;
import okhttp3.OkHttpClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import java.util.concurrent.TimeUnit;
@Configuration @Configuration
public class PerformanceClientConfiguration { public class PerformanceClientConfiguration {
@Bean /* @Bean
public ConnectionPool pool() { public ConnectionPool pool() {
// 最大连接数、连接存活时间、存活时间单位(分钟) // 最大连接数、连接存活时间、存活时间单位(分钟)
return new ConnectionPool(500, 5, TimeUnit.MINUTES); return new ConnectionPool(500, 5, TimeUnit.MINUTES);
...@@ -24,5 +19,5 @@ public class PerformanceClientConfiguration { ...@@ -24,5 +19,5 @@ public class PerformanceClientConfiguration {
.readTimeout(5L, TimeUnit.SECONDS) // 读取超时时间 .readTimeout(5L, TimeUnit.SECONDS) // 读取超时时间
.followRedirects(true) // 是否允许重定向 .followRedirects(true) // 是否允许重定向
.build(); .build();
} }*/
} }
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论