Browse Source

httpclient读取数据超时时间修改

dev_shibei_match
zhaoqifeng 4 years ago
parent
commit
ec577333bf
  1. 2
      epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/utils/HttpClientManager.java

2
epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/utils/HttpClientManager.java

@ -65,7 +65,7 @@ public class HttpClientManager {
// 连接超时时间,毫秒 // 连接超时时间,毫秒
private static int connectionTimeout = 5000; private static int connectionTimeout = 5000;
// 读取数据超时时间,毫秒 // 读取数据超时时间,毫秒
private static int soTimeout = 20000; private static int soTimeout = 45000;
private static String HEADER_CONTENT_TYPE = "Content-Type"; private static String HEADER_CONTENT_TYPE = "Content-Type";
private static String HEADER_APPLICATION_JSON = "application/json;charset=utf-8"; private static String HEADER_APPLICATION_JSON = "application/json;charset=utf-8";
private static String UTF8 = "utf-8"; private static String UTF8 = "utf-8";

Loading…
Cancel
Save