http请求之restTemplate配置超时时间
# 问题 http 请求发起后接收不到返回数据!!!【测试环境没出问题,发到正式环境就有问题】 项目中通过 restTemplate 发起请求: 12345678log.info("请求入参:{}",JSON.toJSONString(request));//打印日志1// 配置http请求的连接超时时间和读取超时时间HttpsClientRequestFactory factory = new HttpsClientRequestFactory();factory.setConnectTimeout(60 *...
more...