首页 > TAG信息列表 > ThreadContext
关于ThreadLocal的使用
定义上下文 public class ThreadContext<T> { private static final ThreadLocal<ThreadContext<?>> LOCAL = new ThreadLocal<>(); private ThreadContext(){} public static <T> ThreadContext<T> init(){ ThreadCo关于ThreadLocal的使用
定义上下文 public class ThreadContext<T> { private static final ThreadLocal<ThreadContext<?>> LOCAL = new ThreadLocal<>(); private ThreadContext(){} public static <T> ThreadContext<T> init(){ ThreadCo