Date date = new Date();
log.info("当前时间为:{}",date);
//yyyy-MM-dd HH:mm:ss
SimpleDateFormat sdf = new SimpleDateFormat(DateUtils.YYYY_MM_DD_HH_MM_SS);
String dateTime = sdf.format(date);
Date date3 = DateUtil.parse(dateTime );
String now = DateUtil.now();
log.info("当前时间为:{}",now);