|
|
@ -42,7 +42,12 @@ public class HttpClientUtil {
|
|
|
|
}*/
|
|
|
|
}*/
|
|
|
|
|
|
|
|
|
|
|
|
// timeout
|
|
|
|
// timeout
|
|
|
|
RequestConfig requestConfig = RequestConfig.custom().setSocketTimeout(10000).setConnectTimeout(10000).build();
|
|
|
|
RequestConfig requestConfig = RequestConfig.custom()
|
|
|
|
|
|
|
|
.setConnectionRequestTimeout(10000)
|
|
|
|
|
|
|
|
.setSocketTimeout(10000)
|
|
|
|
|
|
|
|
.setConnectTimeout(10000)
|
|
|
|
|
|
|
|
.build();
|
|
|
|
|
|
|
|
|
|
|
|
httpPost.setConfig(requestConfig);
|
|
|
|
httpPost.setConfig(requestConfig);
|
|
|
|
|
|
|
|
|
|
|
|
// data
|
|
|
|
// data
|
|
|
|