Use ?date, ?time, or ?datetime to tell FreeMarker the exact type.
原因:传入时间格式需要转换成字符串?string("format")
value="${(model.time?string('yyyy-MM-dd HH:mm:ss'))!}"
Use ?date, ?time, or ?datetime to tell FreeMarker the exact type.
原因:传入时间格式需要转换成字符串?string("format")
value="${(model.time?string('yyyy-MM-dd HH:mm:ss'))!}"