@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value=org.springframework.web.reactive.function.client.WebClient.class) @AutoConfigureAfter(value={CodecsAutoConfiguration.class,ClientHttpConnectorAutoConfiguration.class}) public class WebClientAutoConfiguration extends java.lang.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 |
|---|---|
org.springframework.web.reactive.function.client.WebClient.Builder |
webClientBuilder(org.springframework.beans.factory.ObjectProvider<org.springframework.boot.web.reactive.function.client.WebClientCustomizer> customizerProvider) |
@Bean @Scope(value="prototype") @ConditionalOnMissingBean public org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder(org.springframework.beans.factory.ObjectProvider<org.springframework.boot.web.reactive.function.client.WebClientCustomizer> customizerProvider)