From 714af89fc9b005cb6a98a4ee40185b681dd4ceaf Mon Sep 17 00:00:00 2001 From: buildmaster Date: Mon, 11 May 2020 11:28:24 +0000 Subject: [PATCH] Sync docs from master to gh-pages --- reference/html/index.html | 30 +++++++++++++++++++++- reference/html/spring-cloud-openfeign.html | 30 +++++++++++++++++++++- 2 files changed, 58 insertions(+), 2 deletions(-) diff --git a/reference/html/index.html b/reference/html/index.html index 3826fec2..0dc3492e 100644 --- a/reference/html/index.html +++ b/reference/html/index.html @@ -330,7 +330,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

@@ -561,6 +585,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/reference/html/spring-cloud-openfeign.html b/reference/html/spring-cloud-openfeign.html index 3826fec2..0dc3492e 100644 --- a/reference/html/spring-cloud-openfeign.html +++ b/reference/html/spring-cloud-openfeign.html @@ -330,7 +330,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

@@ -561,6 +585,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