SimpleDateFormat 如何安全的使用?

【强制】SimpleDateFormat 是线程不安全的类,一般不要定义为 static 变量,如果定义为 static,必须加锁,或者使用 DateUtils 工具类。

阅读 219
0 条评论