CloseableHttpClient read time out
public static String httpGetRequest(String url) {
HttpGet httpGet = new HttpGet(url); //加入超时设置
RequestConfig requestConfig = RequestConfig.custom()
.setSocketTimeout(5000)
.s...
原创
2018-04-17 13:40:11 ·
1935 阅读 ·
0 评论