Class RestTemplateAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.web.client.RestTemplateAutoConfiguration
@AutoConfiguration(after={HttpClientAutoConfiguration.class,HttpMessageConvertersAutoConfiguration.class})
@ConditionalOnClass(org.springframework.web.client.RestTemplate.class)
@Conditional(org.springframework.boot.autoconfigure.web.client.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<ClientHttpRequestFactoryBuilder<?>> clientHttpRequestFactoryBuilder, ObjectProvider<ClientHttpRequestFactorySettings> clientHttpRequestFactorySettings, ObjectProvider<HttpMessageConverters> messageConverters, ObjectProvider<RestTemplateCustomizer> restTemplateCustomizers, ObjectProvider<RestTemplateRequestCustomizer<?>> restTemplateRequestCustomizers)
-
Constructor Details
-
RestTemplateAutoConfiguration
public RestTemplateAutoConfiguration()
-
-
Method Details
-
restTemplateBuilderConfigurer
@Bean @Lazy public RestTemplateBuilderConfigurer restTemplateBuilderConfigurer(ObjectProvider<ClientHttpRequestFactoryBuilder<?>> clientHttpRequestFactoryBuilder, ObjectProvider<ClientHttpRequestFactorySettings> clientHttpRequestFactorySettings, ObjectProvider<HttpMessageConverters> messageConverters, ObjectProvider<RestTemplateCustomizer> restTemplateCustomizers, ObjectProvider<RestTemplateRequestCustomizer<?>> restTemplateRequestCustomizers) -
restTemplateBuilder
@Bean @Lazy @ConditionalOnMissingBean public RestTemplateBuilder restTemplateBuilder(RestTemplateBuilderConfigurer restTemplateBuilderConfigurer)
-