Consider harmonizing the Spring Framework and Spring Boot defaults for RestClient request factory #38856
Labels
status: declined
A suggestion or change that we don't feel we should currently apply
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: