同一个线程内共享数据 public static ThreadLocal<UserInfoTo> toThreadLocal = new ThreadLocal<>();// 赋值toThreadLocal.set(userInfoTo);// 取值UserInfoTo userInfoTo = CartInterceptor.toThreadLocal.get();