这个报错往往是http的配置中的 SocketTimeout 设置时间太短导致:
RequestConfig config = RequestConfig.custom().setConnectionRequestTimeout(3000).setConnectTimeout(3000).setSocketTimeout(10000)
.build();
这个报错往往是http的配置中的 SocketTimeout 设置时间太短导致:
RequestConfig config = RequestConfig.custom().setConnectionRequestTimeout(3000).setConnectTimeout(3000).setSocketTimeout(10000)
.build();
转载于:https://www.cnblogs.com/huangziwu/p/9568587.html