diff --git a/renren-admin/src/main/java/io/renren/common/config/RestTemplateConfig.java b/renren-admin/src/main/java/io/renren/common/config/RestTemplateConfig.java index 6b49e6aa..c68a171f 100644 --- a/renren-admin/src/main/java/io/renren/common/config/RestTemplateConfig.java +++ b/renren-admin/src/main/java/io/renren/common/config/RestTemplateConfig.java @@ -30,6 +30,7 @@ public class RestTemplateConfig { SimpleClientHttpRequestFactory factory = new SimpleClientHttpRequestFactory(); factory.setReadTimeout(2000);//单位为ms factory.setConnectTimeout(500);//单位为ms + factory.setOutputStreaming(false); // SocketAddress address = new InetSocketAddress("127.0.0.1", 8888); // Proxy proxy = new Proxy(Proxy.Type.HTTP, address);