From 824f3c2b90cb698643d50d89294bca5bccc77603 Mon Sep 17 00:00:00 2001 From: JEECG <445654970@qq.com> Date: Wed, 4 Sep 2024 23:02:32 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90TV360X-2314=E3=80=91=20=E4=BD=BF?= =?UTF-8?q?=E7=94=A8RestUitl=E7=B1=BB=E6=97=B6=E5=8F=91=E7=8E=B0RestTempla?= =?UTF-8?q?te=E8=B6=85=E6=97=B6=20#7140?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/org/jeecg/common/util/RestUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/RestUtil.java b/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/RestUtil.java index ef0d10f9..f045c7da 100644 --- a/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/RestUtil.java +++ b/jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/common/util/RestUtil.java @@ -57,8 +57,8 @@ public class RestUtil { static { SimpleClientHttpRequestFactory requestFactory = new SimpleClientHttpRequestFactory(); - requestFactory.setConnectTimeout(3000); - requestFactory.setReadTimeout(3000); + requestFactory.setConnectTimeout(30000); + requestFactory.setReadTimeout(30000); RT = new RestTemplate(requestFactory); // 解决乱码问题 RT.getMessageConverters().set(1, new StringHttpMessageConverter(StandardCharsets.UTF_8));