Commit e15cbc04 by 陈健智

restTemplate-readTimeout延长至120s

parent a758ffc3
...@@ -50,7 +50,7 @@ public class CommonConfig { ...@@ -50,7 +50,7 @@ public class CommonConfig {
public RestTemplate restTemplate() throws Exception { public RestTemplate restTemplate() throws Exception {
final OkHttpClient client = new OkHttpClient().newBuilder() final OkHttpClient client = new OkHttpClient().newBuilder()
.connectTimeout(120, TimeUnit.SECONDS) .connectTimeout(120, TimeUnit.SECONDS)
.readTimeout(30, TimeUnit.SECONDS) .readTimeout(120, TimeUnit.SECONDS)
// 忽略SSL证书验证 // 忽略SSL证书验证
.sslSocketFactory(createSslSocketFactory(), new SkipX509TrustManager()) .sslSocketFactory(createSslSocketFactory(), new SkipX509TrustManager())
.hostnameVerifier((s, sslSession) -> true) .hostnameVerifier((s, sslSession) -> true)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment