Skip to content
Discussion options

You must be logged in to vote

According to spring-boot docs, this is used by TestRestTemplate:

It is recommended, but not mandatory, to use the Apache HTTP Client (version 5.1 or better). [...]

Also note the following from the Spring Boot 3.0 Migration Guide:

Support for Apache HttpClient has been removed in Spring Framework 6.0, immediately replaced by org.apache.httpcomponents.client5:httpclient5 (note: this dependency has a different groupId). If you are noticing issues with HTTP client behavior, it could be that RestTemplate is falling back to the JDK client. org.apache.httpcomponents:httpclient can be brought transitively by other dependencies, so your application might rely on this dependency without declarin…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dennisvang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant