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:

+
+

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;
+                }
+            };
+
+        }
+}
+
+

1.3. Creating Feign Clients Manually

@@ -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.

+

1.4. Feign Hystrix Support

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:

+
+

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;
+                }
+            };
+
+        }
+}
+
+

1.3. Creating Feign Clients Manually

@@ -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.

+

1.4. Feign Hystrix Support