Commit 71b12dcf by 刘宇峰

框架完善

1 parent 58aabe56
...@@ -24,7 +24,7 @@ import javax.net.ssl.SSLContext; ...@@ -24,7 +24,7 @@ import javax.net.ssl.SSLContext;
public enum RestTemplateKit { public enum RestTemplateKit {
SCOPE(8000, 8000, 512, 32); SCOPE(20000, 20000, 512, 32);
private final int READ_TIMEOUT; private final int READ_TIMEOUT;
private final int CONNECT_TIMEOUT; private final int CONNECT_TIMEOUT;
......
...@@ -14,8 +14,8 @@ import java.util.Objects; ...@@ -14,8 +14,8 @@ import java.util.Objects;
public class RestTemplateUtils { public class RestTemplateUtils {
private static final int CONNECT_TIMEOUT = 8000; private static final int CONNECT_TIMEOUT = 20000;
private static final int SOCKET_TIMEOUT = 8000; private static final int SOCKET_TIMEOUT = 20000;
private static RestTemplate getCustomRestTemplate() { private static RestTemplate getCustomRestTemplate() {
SimpleClientHttpRequestFactory factory = new SimpleClientHttpRequestFactory(); SimpleClientHttpRequestFactory factory = new SimpleClientHttpRequestFactory();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!