Package io.freefair.spring.okhttp
Class OkHttpRestTemplateAutoConfiguration
java.lang.Object
io.freefair.spring.okhttp.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})
@Conditional(io.freefair.spring.okhttp.OkHttpRestTemplateAutoConfiguration.NotReactiveWebApplicationCondition.class)
public class OkHttpRestTemplateAutoConfiguration
extends Object
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionrestTemplateBuilder
(RestTemplateBuilderConfigurer restTemplateBuilderConfigurer, okhttp3.OkHttpClient okHttpClient)
-
Constructor Details
-
OkHttpRestTemplateAutoConfiguration
public OkHttpRestTemplateAutoConfiguration()
-
-
Method Details
-
restTemplateBuilder
@Bean @Lazy @ConditionalOnMissingBean public RestTemplateBuilder restTemplateBuilder(RestTemplateBuilderConfigurer restTemplateBuilderConfigurer, okhttp3.OkHttpClient okHttpClient)
-