# To disable Hystrix in Feign
+feign:
+ hystrix:
+ enabled: false
+
+# To set thread isolation to SEMAPHORE
+hystrix:
+ command:
+ default:
+ execution:
+ isolation:
+ strategy: SEMAPHORE
+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
+