ThreadLocal传值丢失问题

参考:http://www.spring4all.com/article/948 在Spring Cloud中我们用Hystrix来实现断路器,Zuul中默认是用信号量(Hystrix默认是线程)来进行隔离的,我们可以通过配置使用线程方式隔离。 先来看一下丢失时的代码 public class Main { static ThreadLocal<Object> objectThreadLo
相关文章
相关标签/搜索