FastDateFormat 쓰자
simpleDateFormat 쓰레드 락 걸릴 때 있다Calendar 역시 static은 쓰레드 락 걸린다FastDateFormat 쓰자 Format sdf = FastDateFormat.getInstance("yyyyMMddHHmmss", Locale.getDefault());String currDate = sdf.format(new Date()); log.debug("yyyyMMddHHmmss : " + currDate); http://stackoverflow.com/questions/6840803/simpledateformat-thread-safetyhttp://devday.tistory.com/entry/SimpleDateFormat%EA%B3%BC-Thread-Safety
IT/Java
2014. 7. 21. 15:02