Class OkHttpRestTemplateAutoConfiguration
java.lang.Object
io.freefair.spring.okhttp.autoconfigure.OkHttpRestTemplateAutoConfiguration
@AutoConfiguration(before=org.springframework.boot.autoconfigure.web.client.RestTemplateAutoConfiguration.class,
after=org.springframework.boot.autoconfigure.http.HttpMessageConvertersAutoConfiguration.class)
@ConditionalOnClass({org.springframework.boot.web.client.RestTemplateCustomizer.class,org.springframework.web.client.RestTemplate.class,OkHttpClientRequestFactory.class})
@Conditional(io.freefair.spring.okhttp.autoconfigure.NotReactiveWebApplicationCondition.class)
public class OkHttpRestTemplateAutoConfiguration
extends Object
- See Also:
-
RestTemplateAutoConfiguration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.web.client.RestTemplateBuilder
restTemplateBuilder
(org.springframework.boot.autoconfigure.web.client.RestTemplateBuilderConfigurer restTemplateBuilderConfigurer, okhttp3.OkHttpClient okHttpClient)
-
Constructor Details
-
OkHttpRestTemplateAutoConfiguration
public OkHttpRestTemplateAutoConfiguration()
-
-
Method Details
-
restTemplateBuilder
@Bean @Lazy @ConditionalOnMissingBean public org.springframework.boot.web.client.RestTemplateBuilder restTemplateBuilder(org.springframework.boot.autoconfigure.web.client.RestTemplateBuilderConfigurer restTemplateBuilderConfigurer, okhttp3.OkHttpClient okHttpClient)
-