摘要: ThreadLocal 就是一个Map key就是 Thread.getCurrentThread(). value就是线程需要保存的变量 ThreadLocal.set(value) 相当于 map.put(Thread.getCurrentThread(),value) ThreadLocal. 阅读全文
posted @ 2020-04-07 15:30 蜜桃乌龙茶 阅读(199) 评论(2) 推荐(0) 编辑