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
相關文章
相關標籤/搜索