2000字范文,分享全网优秀范文,学习好帮手!
2000字范文 > freemarker生成html字符串 Freemarker生成HTML错误

freemarker生成html字符串 Freemarker生成HTML错误

时间:2021-03-19 09:32:26

相关推荐

freemarker生成html字符串 Freemarker生成HTML错误

错误代码:

0 ERROR [main] freemarker.runtime --Error executing FreeMarker template 03 七月 14:25:32,730

FreeMarker template error:

The following has evaluated to null or missing:

==> json [in template "template.ftl" at line 56, column 49]

Tip: If the failing expression is known to be legally null/missing, either specify a default value with myOptionalVar!myDefault, or use when-presentwhen-missing#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthessis: (myOptionVar.foo)!myDefault, (myOptionVar.foo)??

The failing instruction (FTL stack trace):

----------

==> ${json[0]} [in template "template.ftl" at line 56, column 47]

----------

Java stack trace (for programmers):

----------

freemarker.core.InvalidReferenceException: [... Exception message was already p

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。