Spring RestTemplate ResourceAccessException:POST 请求上的 I/O 错误未能响应

时间:2021-01-26 11:10:55

标签: spring spring-mvc resttemplate

我在连接 api 时遇到了问题。 这是随机误差。连接等待一定时间并抛出错误。 不会每次都出错。

<块引用>

org.springframework.web.client.ResourceAccessException:I/O 错误 “https://test.com/api1/d3/init”的 POST 请求: 连接 重置;嵌套异常是 java.net.SocketException: Connection reset 在 org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:524) 在 org.springframework.web.client.RestTemplate.execute(RestTemplate.java:485) 在 org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:436)

我试图从下面的帖子中了解这个问题,但对此没有太多了解。 Spring Boot RestTemplate ResourceAccessException: I/O error on POST request failed to respond

请就此提出您宝贵的建议。

0 个答案:

没有答案