类 WebTestClientAutoConfiguration
- java.lang.Object
- org.springframework.boot.test.autoconfigure.web.reactive.WebTestClientAutoConfiguration
@Configuration @ConditionalOnClass({org.springframework.web.reactive.function.client.WebClient.class,org.springframework.test.web.reactive.server.WebTestClient.class}) @AutoConfigureAfter({org.springframework.boot.autoconfigure.http.codec.CodecsAutoConfiguration.class,org.springframework.boot.autoconfigure.web.reactive.WebFluxAutoConfiguration.class}) @Import(org.springframework.boot.test.autoconfigure.web.reactive.WebTestClientSecurityConfiguration.class) @EnableConfigurationProperties public class WebTestClientAutoConfiguration extends Object
Auto-configuration forWebTestClient
.- 从以下版本开始:
- 2.0.0
构造器概要
构造器 构造器 说明 WebTestClientAutoConfiguration()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 SpringBootWebTestClientBuilderCustomizer
springBootWebTestClientBuilderCustomizer(org.springframework.beans.factory.ObjectProvider<org.springframework.boot.web.codec.CodecCustomizer> codecCustomizers)
org.springframework.test.web.reactive.server.WebTestClient
webTestClient(org.springframework.context.ApplicationContext applicationContext, List<WebTestClientBuilderCustomizer> customizers, List<org.springframework.test.web.reactive.server.MockServerConfigurer> configurers)
构造器详细资料
WebTestClientAutoConfiguration
public WebTestClientAutoConfiguration()
方法详细资料
webTestClient
@Bean @ConditionalOnMissingBean @ConditionalOnBean(org.springframework.web.server.WebHandler.class) public org.springframework.test.web.reactive.server.WebTestClient webTestClient(org.springframework.context.ApplicationContext applicationContext, List<WebTestClientBuilderCustomizer> customizers, List<org.springframework.test.web.reactive.server.MockServerConfigurer> configurers)
springBootWebTestClientBuilderCustomizer
@Bean @ConfigurationProperties(prefix="spring.test.webtestclient") public SpringBootWebTestClientBuilderCustomizer springBootWebTestClientBuilderCustomizer(org.springframework.beans.factory.ObjectProvider<org.springframework.boot.web.codec.CodecCustomizer> codecCustomizers)