在前端html页面使用velocity模板语言显示数据时,进行时间格式化:
$!{date.format('yyyy年MM月dd日 HH时mm分ss秒',$!{codeReview.commitTime})}
使用后如图: