在使用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,