File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
continew-common/src/main/java/top/continew/admin/common/context Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 20
20
import cn .dev33 .satoken .stp .StpUtil ;
21
21
import cn .hutool .core .convert .Convert ;
22
22
import cn .hutool .extra .spring .SpringUtil ;
23
+ import com .alibaba .ttl .TransmittableThreadLocal ;
23
24
import top .continew .admin .common .api .system .UserApi ;
24
25
import top .continew .starter .core .util .ExceptionUtils ;
25
26
31
32
*/
32
33
public class UserContextHolder {
33
34
34
- private static final ThreadLocal <UserContext > CONTEXT_HOLDER = new ThreadLocal <>();
35
- private static final ThreadLocal <UserExtraContext > EXTRA_CONTEXT_HOLDER = new ThreadLocal <>();
35
+ private static final TransmittableThreadLocal <UserContext > CONTEXT_HOLDER = new TransmittableThreadLocal <>();
36
+ private static final TransmittableThreadLocal <UserExtraContext > EXTRA_CONTEXT_HOLDER = new TransmittableThreadLocal <>();
36
37
37
38
private UserContextHolder () {
38
39
}
You can’t perform that action at this time.
0 commit comments