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.