设置的超时时间是20秒
"appid":"wxc71d3e2f77e4109f"
2021-06-28 16:42:03.577 [http-nio-8080-exec-28] 【请求地址】: https://api.weixin.qq.com/wxa/commit?xxx
【请求参数】:{"template_id":1306,"user_version":"v5.0.4","user_desc":"商城小程序v5.0.4","ext_json":...}
【异常信息】:Read timed out
在demo中加上这几行代码就行了
DefaultApacheHttpClientBuilder clientBuilder = DefaultApacheHttpClientBuilder.get();
clientBuilder.setSoTimeout(30000);
//连接池socket超时时间(单位ms)
inRedisConfigStorage.setApacheHttpClientBuilder(clientBuilder);