保证多线程间的可见性,所以声明为volatile

NoSuchKey

猜你喜欢

转载自www.cnblogs.com/struohnssebxsc/p/11243549.html