我在使用具有RestTemplate交换方法的REST API时遇到问题: 我尝试了一些其他的公共API,它使用相同的代码(只是改变了URL),所以我认为这不是我的代码的问题,而可能是网络代理或其他什么的问题错误文本: org.springframework.web.client.ResourceAccessException: I/O error on POST request for : Connectiontimed
(url, HttpMethod.POST, requestEntity, String.class) org.springframework.web.client.ResourceAccessException: I/O error on POST request(RestTemplate.java:66
我使用Spring Boot,在保持与第三方REST服务的长期连接时遇到了以下问题:
org.springframework.web.client.ResourceAccessException: I/O error on POST request for "http://localhost:5000/products/10": localhost:5000 failed to respond; nested(
SpringBootTest{ public void getAllGoodsRequest() RestTemplaterestTemplate = new RestTemplate();
Object test = restTemplate.getForObject("http://localhost:8888/gc/goods
这四个服务需要偶尔共享信息,并通过使用Spring的RESTful RestTemplate请求进行共享。目前,大约5%-10%的请求失败,例外情况如下:
org.springframework.web.client.ResourceAccessException: I/O error on POST request我尝试过多种方法,但似乎没有什么效果。(contact_base_url, HttpMethod.POST,