REM:
1.  增加了接口超时时间配置
This commit is contained in:
HuangXin 2021-10-25 09:17:30 +08:00
parent 18a1fcce1b
commit 7fa5d10587
1 changed files with 2 additions and 1 deletions

View File

@ -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.