Class 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
.- Since:
- 2.0.0
Constructor Summary
Constructors Constructor Description WebTestClientAutoConfiguration()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
Constructor Detail
WebTestClientAutoConfiguration
public WebTestClientAutoConfiguration()
Method Detail
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)