与ThreadLocal类似, ClassValue的作用可以说是ClassLocal. 如果你有一些缓存是以Class<?>为key, 那么可以考虑用ClassValue代替. 对于动态生成的类, 不会导致其无法被回收.