Compare commits

..

2 Commits

Author SHA1 Message Date
476474485@qq.com 60a8739b06 Merge remote-tracking branch 'origin/fw-nifi' into fw-nifi 2025-09-06 12:16:15 +08:00
476474485@qq.com 348f0caf2d 预算代码提交 2025-09-06 12:15:11 +08:00
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@ 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) // 读取超时时间