知方号

知方号

Freemarker报错Maybe using obj.something instead of obj.isSomething

背景

在使用Freemarker的过程中报错如下

freemarker.core.NonStringOrTemplateOutputException: For "${...}" content: Expected a string or something automatically convertible to string (number, date or boolean), or "template output" , but this has evaluated to a method+sequence (wrapper: f.e.b.SimpleMethodModel):==> data.isResult [in template "order.ftl" at line 58, column 19]----Tip: Maybe using obj.something instead of obj.isSomething will yield the desired value.--------FTL stack trace ("~" means nesting-related):- Failed at: ${data.isResult} [in template "order.ftl" at line 58, column 17]----原因及解决方法

java的get和setter方法默认规则如下,对于一个布尔变量val,

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至lizi9903@foxmail.com举报,一经查实,本站将立刻删除。