From 420bb8a2b11bb176e178f26c3babb67388e99eb5 Mon Sep 17 00:00:00 2001
From: buildmaster
Date: Mon, 11 May 2020 11:28:06 +0000
Subject: [PATCH] Sync docs from 2.2.x to gh-pages
---
2.2.x/reference/html/index.html | 30 ++++++++++++++++++-
.../html/spring-cloud-openfeign.html | 30 ++++++++++++++++++-
2 files changed, 58 insertions(+), 2 deletions(-)
diff --git a/2.2.x/reference/html/index.html b/2.2.x/reference/html/index.html
index d0c9d3a8..bbb70d06 100644
--- a/2.2.x/reference/html/index.html
+++ b/2.2.x/reference/html/index.html
@@ -337,7 +337,7 @@ If none of them is in the classpath, the default feign client is used.
You can customize the HTTP client used by providing a bean of either org.apache.http.impl.client.CloseableHttpClient when using Apache or okhttp3.OkHttpClient when using OK HTTP.
-
Spring Cloud Netflix does not provide the following beans by default for feign, but still looks up beans of these types from the application context to create the feign client:
+
Spring Cloud OpenFeign does not provide the following beans by default for feign, but still looks up beans of these types from the application context to create the feign client:
@@ -491,6 +491,30 @@ public interface BarClient {
}
+
+
It is also possible to configure FeignClient not to inherit beans from the parent context.
+You can do this by overriding the inheritParentConfiguration() in a FeignClientConfigurer
+bean to return false:
+
+
+
+
@Configuration
+public class CustomConfiguration{
+
+@Bean
+public FeignClientConfigurer feignClientConfigurer() {
+ return new FeignClientConfigurer() {
+
+ @Override
+ public boolean inheritParentConfiguration() {
+ return false;
+ }
+ };
+
+ }
+}
+
+
@@ -568,6 +592,10 @@ the default Feign native annotations.
+
+
You can also use the Builder`to configure FeignClient not to inherit beans from the parent context.
+You can do this by overriding calling `inheritParentContext(false) on the Builder.
+
diff --git a/2.2.x/reference/html/spring-cloud-openfeign.html b/2.2.x/reference/html/spring-cloud-openfeign.html
index d0c9d3a8..bbb70d06 100644
--- a/2.2.x/reference/html/spring-cloud-openfeign.html
+++ b/2.2.x/reference/html/spring-cloud-openfeign.html
@@ -337,7 +337,7 @@ If none of them is in the classpath, the default feign client is used.
You can customize the HTTP client used by providing a bean of either
org.apache.http.impl.client.CloseableHttpClient when using Apache or
okhttp3.OkHttpClient when using OK HTTP.
-
Spring Cloud Netflix does not provide the following beans by default for feign, but still looks up beans of these types from the application context to create the feign client:
+
Spring Cloud OpenFeign does not provide the following beans by default for feign, but still looks up beans of these types from the application context to create the feign client:
@@ -491,6 +491,30 @@ public interface BarClient {
}
+
+
It is also possible to configure FeignClient not to inherit beans from the parent context.
+You can do this by overriding the inheritParentConfiguration() in a FeignClientConfigurer
+bean to return false:
+
+
+
+
@Configuration
+public class CustomConfiguration{
+
+@Bean
+public FeignClientConfigurer feignClientConfigurer() {
+ return new FeignClientConfigurer() {
+
+ @Override
+ public boolean inheritParentConfiguration() {
+ return false;
+ }
+ };
+
+ }
+}
+
+
@@ -568,6 +592,10 @@ the default Feign native annotations.
+
+
You can also use the Builder`to configure FeignClient not to inherit beans from the parent context.
+You can do this by overriding calling `inheritParentContext(false) on the Builder.
+