@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value=org.springframework.web.reactive.function.client.WebClient.class) @AutoConfigureAfter(value={CodecsAutoConfiguration.class,ClientHttpConnectorAutoConfiguration.class}) public class WebClientAutoConfiguration extends Object
Auto-configuration
for WebClient
.
This will produce a
WebClient.Builder
bean with the prototype
scope, meaning each injection point
will receive a newly cloned instance of the builder.
Modifier and Type | Class and Description |
---|---|
protected static class |
WebClientAutoConfiguration.WebClientCodecsConfiguration |
Constructor and Description |
---|
WebClientAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
WebClient.Builder |
webClientBuilder(ObjectProvider<WebClientCustomizer> customizerProvider) |
@Bean @Scope(value="prototype") @ConditionalOnMissingBean public WebClient.Builder webClientBuilder(ObjectProvider<WebClientCustomizer> customizerProvider)