SimpleDateFormat线程不安全问题 等雨说放弃 2022-04-08 139 阅读1分钟 SimpleDateFormat是线程不安全的类,一般不要定义为static变量,如果定义为static,必须通过加锁等方式保证线程安全。