We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2caec5 commit f19a01fCopy full SHA for f19a01f
autoconfigure/src/main/java/io/freefair/spring/okhttp/OkHttpRestTemplateAutoConfiguration.java
@@ -17,6 +17,7 @@
17
import org.springframework.context.annotation.Bean;
18
import org.springframework.context.annotation.Conditional;
19
import org.springframework.context.annotation.Configuration;
20
+import org.springframework.context.annotation.Lazy;
21
import org.springframework.http.client.OkHttp3ClientHttpRequestFactory;
22
import org.springframework.web.client.RestTemplate;
23
@@ -37,6 +38,7 @@
37
38
public class OkHttpRestTemplateAutoConfiguration {
39
40
@Bean
41
+ @Lazy
42
@ConditionalOnMissingBean
43
public RestTemplateBuilder restTemplateBuilder(ObjectProvider<HttpMessageConverters> messageConverters,
44
ObjectProvider<RestTemplateCustomizer> restTemplateCustomizers,
0 commit comments