Class OkHttpRestTemplateAutoConfiguration


  • @Configuration
    @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)
    public class OkHttpRestTemplateAutoConfiguration
    extends Object
    See Also:
    RestTemplateAutoConfiguration
    • Constructor Detail

      • OkHttpRestTemplateAutoConfiguration

        public OkHttpRestTemplateAutoConfiguration​(org.springframework.beans.factory.ObjectProvider<org.springframework.boot.autoconfigure.http.HttpMessageConverters> messageConverters,
                                                   org.springframework.beans.factory.ObjectProvider<org.springframework.boot.web.client.RestTemplateCustomizer> restTemplateCustomizers)
    • Method Detail

      • okHttpRestTemplateBuilder

        @Bean
        @ConditionalOnMissingBean
        public org.springframework.boot.web.client.RestTemplateBuilder okHttpRestTemplateBuilder​(okhttp3.OkHttpClient okHttpClient)