Issue with RestTemplate exchange method after Spring Boot Upgrade – Throwing Bad Request Error on calls
After upgrading to springboot 3.1 from 2.7, We are facing 400 bad request error on RestTemplate calls. The api we built internally makes Https call and during this call we are seeing the issue. This behavior was not present in the old version and it is linked to springboot upgrade changes.
ReadTimout in HttpComponentsClientHttpRequestFactory in spring boot 3.3.0
I need to configure a restTemplate
with read Timeout, but I don’t see any method to set the readTimeout
in HttpComponentsClientHttpRequestFactory
in Spring boot 3.3.0.
Any idea how I can set readTimeout
?
Rest template not adding Content-Length header for empty body resulting in ‘411 Length Required’ post spring boot upgrade to 3.2
Pretty much the title.