Class RestTemplateAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.web.client.RestTemplateAutoConfiguration
@Configuration(proxyBeanMethods=false)
@AutoConfigureAfter(HttpMessageConvertersAutoConfiguration.class)
@ConditionalOnClass(org.springframework.web.client.RestTemplate.class)
@Conditional(org.springframework.boot.autoconfigure.web.client.RestTemplateAutoConfiguration.NotReactiveWebApplicationCondition.class)
public class RestTemplateAutoConfiguration
extends Object
- Since:
- 1.4.0
- Author:
- Stephane Nicoll, Phillip Webb
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionrestTemplateBuilder
(RestTemplateBuilderConfigurer restTemplateBuilderConfigurer) restTemplateBuilderConfigurer
(ObjectProvider<HttpMessageConverters> messageConverters, ObjectProvider<RestTemplateCustomizer> restTemplateCustomizers, ObjectProvider<RestTemplateRequestCustomizer<?>> restTemplateRequestCustomizers)
-
Constructor Details
-
RestTemplateAutoConfiguration
public RestTemplateAutoConfiguration()
-
-
Method Details
-
restTemplateBuilderConfigurer
@Bean @Lazy @ConditionalOnMissingBean public RestTemplateBuilderConfigurer restTemplateBuilderConfigurer(ObjectProvider<HttpMessageConverters> messageConverters, ObjectProvider<RestTemplateCustomizer> restTemplateCustomizers, ObjectProvider<RestTemplateRequestCustomizer<?>> restTemplateRequestCustomizers) -
restTemplateBuilder
@Bean @Lazy @ConditionalOnMissingBean public RestTemplateBuilder restTemplateBuilder(RestTemplateBuilderConfigurer restTemplateBuilderConfigurer)
-