java.lang.Object
org.springframework.boot.autoconfigure.web.reactive.function.client.WebClientAutoConfiguration

@AutoConfiguration(after={CodecsAutoConfiguration.class,ClientHttpConnectorAutoConfiguration.class}) @ConditionalOnClass(org.springframework.web.reactive.function.client.WebClient.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.

Since:
2.0.0
  • Constructor Details

    • WebClientAutoConfiguration

      public WebClientAutoConfiguration()
  • Method Details

    • webClientBuilder

      @Bean @Scope("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)