有初始化的 ThreadLocal 2024年11月21日 20:51 • Java • 阅读 129 private static final ThreadLocal<Integer> hasPlatformPrice = ThreadLocal.withInitial(() -> 0);