RestTemplateAutoConfigure中
ConnectionConfig connectConfig = ConnectionConfig.custom()
// 读超时
.setSocketTimeout(Timeout.ofMicroseconds(restTemplateProperties.getReadTimeout()))
// 链接超时
.setConnectTimeout(Timeout.ofMicroseconds(restTemplateProperties.getConnectTimeout()))
.build();
connectionManager.setDefaultConnectionConfig(connectConfig);
这段代码使用的Timeout.ofMicroseconds方法是不是不对,时间太短造成read time out,应该改成ofMilliseconds这个方法