Class WebTestClientAutoConfiguration
java.lang.Object
org.springframework.boot.test.autoconfigure.web.reactive.WebTestClientAutoConfiguration
@AutoConfiguration(after={CodecsAutoConfiguration.class,WebFluxAutoConfiguration.class})
@ConditionalOnClass({org.springframework.web.reactive.function.client.WebClient.class,org.springframework.test.web.reactive.server.WebTestClient.class})
@Import(org.springframework.boot.test.autoconfigure.web.reactive.WebTestClientSecurityConfiguration.class)
@EnableConfigurationProperties
public class WebTestClientAutoConfiguration
extends Object
Auto-configuration for
WebTestClient
.- Since:
- 2.0.0
- Author:
- Stephane Nicoll, Andy Wilkinson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionspringBootWebTestClientBuilderCustomizer
(ObjectProvider<CodecCustomizer> codecCustomizers) webTestClient
(ApplicationContext applicationContext, List<WebTestClientBuilderCustomizer> customizers, List<MockServerConfigurer> configurers)
-
Constructor Details
-
WebTestClientAutoConfiguration
public WebTestClientAutoConfiguration()
-
-
Method Details
-
webTestClient
@Bean @ConditionalOnMissingBean @ConditionalOnBean(org.springframework.web.server.WebHandler.class) public WebTestClient webTestClient(ApplicationContext applicationContext, List<WebTestClientBuilderCustomizer> customizers, List<MockServerConfigurer> configurers) -
springBootWebTestClientBuilderCustomizer
@Bean @ConfigurationProperties(prefix="spring.test.webtestclient") public SpringBootWebTestClientBuilderCustomizer springBootWebTestClientBuilderCustomizer(ObjectProvider<CodecCustomizer> codecCustomizers)
-