freemarker Incoming date error

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

The reason: Incoming time format needs to be converted into a string?string("format")

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

Reproduced in: https: //www.jianshu.com/p/ed1699d48e87

Guess you like

Origin blog.csdn.net/weixin_33694620/article/details/91171872