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 Details

  • Method Details

    • restTemplateBuilder

      @Bean @Lazy @ConditionalOnMissingBean public org.springframework.boot.web.client.RestTemplateBuilder restTemplateBuilder(org.springframework.boot.autoconfigure.web.client.RestTemplateBuilderConfigurer restTemplateBuilderConfigurer, OkHttpClient okHttpClient)