@Configuration @ConditionalOnClass(value={org.springframework.web.reactive.function.client.WebClient.class,org.springframework.test.web.reactive.server.WebTestClient.class}) @AutoConfigureAfter(value={CodecsAutoConfiguration.class,WebFluxAutoConfiguration.class}) @EnableConfigurationProperties public class WebTestClientAutoConfiguration extends Object
WebTestClient
.Constructor and Description |
---|
WebTestClientAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
SpringBootWebTestClientBuilderCustomizer |
springBootWebTestClientBuilderCustomizer(ObjectProvider<Collection<CodecCustomizer>> codecCustomizers) |
WebTestClient |
webTestClient(ApplicationContext applicationContext,
List<WebTestClientBuilderCustomizer> customizers) |
@Bean @ConditionalOnMissingBean @ConditionalOnBean(value=org.springframework.web.server.WebHandler.class) public WebTestClient webTestClient(ApplicationContext applicationContext, List<WebTestClientBuilderCustomizer> customizers)
@Bean @ConfigurationProperties(prefix="spring.test.webtestclient") public SpringBootWebTestClientBuilderCustomizer springBootWebTestClientBuilderCustomizer(ObjectProvider<Collection<CodecCustomizer>> codecCustomizers)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.