|
|
@ -59,8 +59,10 @@ import java.util.Set; |
|
|
|
*/ |
|
|
|
@Slf4j |
|
|
|
public class HttpClientManager { |
|
|
|
private static int connectionTimeout = 4000;// 连接超时时间,毫秒
|
|
|
|
private static int soTimeout = 10000;// 读取数据超时时间,毫秒
|
|
|
|
// 连接超时时间,毫秒
|
|
|
|
private static int connectionTimeout = 5000; |
|
|
|
// 读取数据超时时间,毫秒
|
|
|
|
private static int soTimeout = 20000; |
|
|
|
private static String HEADER_CONTENT_TYPE = "Content-Type"; |
|
|
|
private static String HEADER_APPLICATION_JSON = "application/json;charset=utf-8"; |
|
|
|
private static String UTF8 = "utf-8"; |
|
|
|