Compare commits

..

No commits in common. "60a8739b063ce48524edb2e98c5d8bb8d40ae5ad" and "0b7a644ed0aa97e8754370eecef0b10acad3a436" have entirely different histories.

1 changed files with 0 additions and 1 deletions

View File

@ -27,7 +27,6 @@ public class HttpClientConfig {
@Bean @Bean
public OkHttpClient okHttpClient() throws Exception { public OkHttpClient okHttpClient() throws Exception {
//调用nifi接口正常情况不会超过60秒的目前遇到的接口1秒以内调用完毕 //调用nifi接口正常情况不会超过60秒的目前遇到的接口1秒以内调用完毕
return new OkHttpClient.Builder().sslSocketFactory(createTrustAllSslSocketFactory(), createTrustAllTrustManager()).hostnameVerifier((hostname, session) -> true).connectTimeout(60, TimeUnit.SECONDS) // 连接超时时间 return new OkHttpClient.Builder().sslSocketFactory(createTrustAllSslSocketFactory(), createTrustAllTrustManager()).hostnameVerifier((hostname, session) -> true).connectTimeout(60, TimeUnit.SECONDS) // 连接超时时间
.readTimeout(60, TimeUnit.SECONDS) // 读取超时时间 .readTimeout(60, TimeUnit.SECONDS) // 读取超时时间