-
Notifications
You must be signed in to change notification settings - Fork 40.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider harmonizing the Spring Framework and Spring Boot defaults for RestClient request factory #38856
Comments
|
Closing in favor of #36266. |
Thank you! I am glad that since Spring Boot 3.4.0, JdkClientHttpRequestFactory is now the default HTTP client library instead of SimpleClientHttpRequestFactory. See https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.4-Release-Notes#restclient-and-resttemplate |
Spring Framework documents that the default
ClientHttpRequestFactory
used when building aRestClient
is the following, conditional on the classpath:SimpleClientHttpRequestFactory
Spring Boot's
RestClient
auto-configuration overrides the request factory usingClientHttpRequestFactories
, which has the following order:SimpleClientHttpRequestFactory
The result is that the JDK HTTP client is not considered when Spring Boot auto-configures the
RestClient
. We should consider bringing the Boot defaults in line with Framework.The text was updated successfully, but these errors were encountered: