From b4610654d030bdba63b00a6a159cb9a6f6f62f61 Mon Sep 17 00:00:00 2001 From: buildmaster Date: Tue, 22 Nov 2016 22:10:11 +0000 Subject: [PATCH] Sync docs from master to gh-pages --- spring-cloud-netflix.html | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/spring-cloud-netflix.html b/spring-cloud-netflix.html index 699b395d5..8d067a479 100644 --- a/spring-cloud-netflix.html +++ b/spring-cloud-netflix.html @@ -1748,6 +1748,38 @@ public class FooConfiguration {

Default configurations can be specified in the @EnableFeignClients attribute defaultConfiguration in a similar manner as described above. The difference is that this configuration will apply to all feign clients.

+
+ + + + + +
+
Note
+
+If you need to use ThreadLocal bound variables in your RequestInterceptor`s you will need to either set the +thread isolation strategy for Hystrix to `SEMAPHORE or disable Hystrix in Feign. +
+
+
+

application.yml

+
+
+
+
# To disable Hystrix in Feign
+feign:
+  hystrix:
+    enabled: false
+
+# To set thread isolation to SEMAPHORE
+hystrix:
+  command:
+    default:
+      execution:
+        isolation:
+          strategy: SEMAPHORE
+
+

Creating Feign Clients Manually