소스 검색

请求超时设置为90S 人寿需要延长时间

785834757 1 년 전
부모
커밋
20d8ba6bd4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/java/com/ydtech/config/resttemplate/RestTemplateConfig.java

+ 1 - 1
src/main/java/com/ydtech/config/resttemplate/RestTemplateConfig.java

@@ -41,7 +41,7 @@ public class RestTemplateConfig {
     private static final int IDLE_CONNECTIONS = 30;
     private static final int IDLE_CONNECTIONS = 30;
 
 
     // 返回数据的超时时间
     // 返回数据的超时时间
-    private static final int SOCKET_TIMEOUT = 60 * 1000;
+    private static final int SOCKET_TIMEOUT = 90 * 1000;
 
 
     // 连接上服务器的超时时间
     // 连接上服务器的超时时间
     private static final int CONNECT_TIMEOUT = 3 * 1000;
     private static final int CONNECT_TIMEOUT = 3 * 1000;