预算代码提交

This commit is contained in:
476474485@qq.com 2025-09-06 12:15:11 +08:00
parent f01f5cd00a
commit 348f0caf2d
1 changed files with 1 additions and 0 deletions

View File

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