mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-08-14 05:21:42 +08:00
Compare commits
No commits in common. "c7b392fc93f4993321c0bf43b621ec38568135e2" and "14dd7364e37d1d80ebaf71025d18df129868247c" have entirely different histories.
c7b392fc93
...
14dd7364e3
@ -261,5 +261,5 @@ server.tomcat.max-threads=1
|
||||
|
||||
解决上述问题比较建议的办法是使用阿里巴巴开源的 `TransmittableThreadLocal`(`TTL`)。`TransmittableThreadLocal`类继承并加强了 JDK 内置的`InheritableThreadLocal`类,在使用线程池等会池化复用线程的执行组件情况下,提供`ThreadLocal`值的传递功能,解决异步执行时上下文传递的问题。
|
||||
|
||||
`TransmittableThreadLocal` 项目地址: https://github.com/alibaba/transmittable-thread-local 。
|
||||
`InheritableThreadLocal` 项目地址: https://github.com/alibaba/transmittable-thread-local 。
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user