Package io.freefair.spring.okhttp
Class OkHttpRestTemplateAutoConfiguration
- java.lang.Object
-
- io.freefair.spring.okhttp.OkHttpRestTemplateAutoConfiguration
-
@Configuration(proxyBeanMethods=false) @ConditionalOnClass({org.springframework.boot.web.client.RestTemplateCustomizer.class,org.springframework.web.client.RestTemplate.class}) @AutoConfigureBefore(org.springframework.boot.autoconfigure.web.client.RestTemplateAutoConfiguration.class) @AutoConfigureAfter(org.springframework.boot.autoconfigure.http.HttpMessageConvertersAutoConfiguration.class) @Conditional(io.freefair.spring.okhttp.OkHttpRestTemplateAutoConfiguration.NotReactiveWebApplicationCondition.class) public class OkHttpRestTemplateAutoConfiguration extends Object
- See Also:
RestTemplateAutoConfiguration
-
-
Constructor Summary
Constructors Constructor Description OkHttpRestTemplateAutoConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RestTemplateBuilder
restTemplateBuilder(ObjectProvider<HttpMessageConverters> messageConverters, ObjectProvider<RestTemplateCustomizer> restTemplateCustomizers, ObjectProvider<RestTemplateRequestCustomizer<?>> restTemplateRequestCustomizers, OkHttpClient okHttpClient)
-
-
-
Method Detail
-
restTemplateBuilder
@Bean @Lazy @ConditionalOnMissingBean public RestTemplateBuilder restTemplateBuilder(ObjectProvider<HttpMessageConverters> messageConverters, ObjectProvider<RestTemplateCustomizer> restTemplateCustomizers, ObjectProvider<RestTemplateRequestCustomizer<?>> restTemplateRequestCustomizers, OkHttpClient okHttpClient)
-
-