类 WebClientAutoConfiguration
- java.lang.Object
- org.springframework.boot.autoconfigure.web.reactive.function.client.WebClientAutoConfiguration
@Configuration @ConditionalOnClass(org.springframework.web.reactive.function.client.WebClient.class) @AutoConfigureAfter({CodecsAutoConfiguration.class,ClientHttpConnectorAutoConfiguration.class}) public class WebClientAutoConfiguration extends Object
Auto-configuration
forWebClient
.This will produce a
WebClient.Builder
bean with theprototype
scope, meaning each injection point will receive a newly cloned instance of the builder.- 从以下版本开始:
- 2.0.0
嵌套类概要
嵌套类 修饰符和类型 类 说明 protected static class
WebClientAutoConfiguration.WebClientCodecsConfiguration
构造器概要
构造器 构造器 说明 WebClientAutoConfiguration(org.springframework.beans.factory.ObjectProvider<org.springframework.boot.web.reactive.function.client.WebClientCustomizer> customizerProvider)
构造器详细资料
WebClientAutoConfiguration
public WebClientAutoConfiguration(org.springframework.beans.factory.ObjectProvider<org.springframework.boot.web.reactive.function.client.WebClientCustomizer> customizerProvider)
方法详细资料
webClientBuilder
@Bean @Scope("prototype") @ConditionalOnMissingBean public org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder()