From 7fa5d105877bfd7cae7e77ae9741b301d7b62829 Mon Sep 17 00:00:00 2001 From: HuangXin Date: Mon, 25 Oct 2021 09:17:30 +0800 Subject: [PATCH] =?UTF-8?q?OCT=20REM:=201.=20=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E4=BA=86=E6=8E=A5=E5=8F=A3=E8=B6=85=E6=97=B6=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/dispose/restful/RestfulInterface.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/dispose/restful/RestfulInterface.java b/src/main/java/com/dispose/restful/RestfulInterface.java index df867f92..a04d73db 100644 --- a/src/main/java/com/dispose/restful/RestfulInterface.java +++ b/src/main/java/com/dispose/restful/RestfulInterface.java @@ -4,6 +4,7 @@ import cn.hutool.http.Header; import cn.hutool.http.HttpRequest; import cn.hutool.http.HttpResponse; import com.dispose.common.ConstValue; +import com.dispose.common.DisposeConfigValue; import com.dispose.pojo.dto.protocol.base.ProtocolRespDTO; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.type.TypeReference; @@ -36,7 +37,7 @@ public class RestfulInterface { /** * The constant timeOutValue. */ - private static int timeOutValue = 5000; + private static int timeOutValue = new Long(DisposeConfigValue.REQUEST_TIMEOUT_MS).intValue(); /** * Instantiates a new Restful interface.