ThreadLocal在线程内部实现数据的共享

//编写ThreadLocalAPI public class ThreadLocalUtil { private static ThreadLocal thread = new ThreadLocal<>(); public static void set(User user) { thread.set(user); } public static User get() { return thr
相关文章
相关标签/搜索