Class WebClientRestTemplateAutoConfiguration
- java.lang.Object
- org.springframework.boot.test.autoconfigure.web.client.WebClientRestTemplateAutoConfiguration
@Configuration @ConditionalOnProperty(prefix="spring.test.webclient", name="register-rest-template") @AutoConfigureAfter(org.springframework.boot.autoconfigure.web.client.RestTemplateAutoConfiguration.class) public class WebClientRestTemplateAutoConfiguration extends Object
Auto-configuration for a web-clientRestTemplate
. Used whenAutoConfigureWebClient.registerRestTemplate()
istrue
.- Since:
- 1.4.0
- See Also:
AutoConfigureMockRestServiceServer
Constructor Summary
Constructors Constructor Description WebClientRestTemplateAutoConfiguration()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.web.client.RestTemplate
restTemplate(org.springframework.boot.web.client.RestTemplateBuilder builder)
Constructor Detail
WebClientRestTemplateAutoConfiguration
public WebClientRestTemplateAutoConfiguration()
Method Detail
restTemplate
@Bean public org.springframework.web.client.RestTemplate restTemplate(org.springframework.boot.web.client.RestTemplateBuilder builder)