SimpleDateFormat在格式化大数据量的时间易出现线程问题

当数据量较大的时候,可能会出现传入处理参数与实际传入参数不一致的问题 此时看看SimpleDateFormat源码: 由此可知SimpleDateFormat非线程安全,可使用:FastDateFormat  public static final FastDateFormat TIME_FORMAT = FastDateFormat.getInstance("yyyy-MM-dd HH:mm:s
相关文章
相关标签/搜索