0%

freemarker传入日期报错

文章字数:23,阅读全文大约需要1分钟

Use ?date, ?time, or ?datetime to tell FreeMarker the exact type.

原因:传入时间格式需要转换成字符串?string("format")

1
value="${(model.time?string('yyyy-MM-dd HH:mm:ss'))!}"