ThreadLocal傳值丟失問題

參考:http://www.spring4all.com/article/948 在Spring Cloud中我們用Hystrix來實現斷路器,Zuul中默認是用信號量(Hystrix默認是線程)來進行隔離的,我們可以通過配置使用線程方式隔離。 先來看一下丟失時的代碼 public class Main { static ThreadLocal<Object> objectThreadLo
相關文章
相關標籤/搜索