• Brian Clozel's avatar
    Auto-configure HTTP client builders as Lazy · 0f567c87
    Brian Clozel authored
    Prior to this commit, HTTP client builders auto-configured by Spring
    Boot would be eagerly instantiating resources, even if those were not
    used by the application.
    
    This commit makes the `RestTemplateBuilder` bean as Lazy.
    `WebClient.Builder` was already a prototype bean, but some of its
    dependencies could consume resources, like the `HttpClientConnector` and
    the related infrastructure. This commit makes those pieces lazy.
    
    Note that since those components are meant to help instantiate actual
    HTTP clients for application components, making them lazy won't make any
    difference at runtime since they'll be used during context refresh, or
    they won't be used at all.
    
    Closes gh-19549
    0f567c87
Name
Last commit
Last update
.github Loading commit data...
buildSrc Loading commit data...
ci Loading commit data...
eclipse Loading commit data...
git/hooks Loading commit data...
gradle Loading commit data...
idea Loading commit data...
spring-boot-project Loading commit data...
spring-boot-tests Loading commit data...
src/checkstyle Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
SUPPORT.adoc Loading commit data...
build.gradle Loading commit data...
gradle.properties Loading commit data...
gradlew Loading commit data...
gradlew.bat Loading commit data...
settings.gradle Loading commit data...