在Spring Boot + Mustache模板环境中,如果我们未在Mustache页面上为{
{variable}}
分配值,则jmustache将抛出以下错误消息:
com.samskivert.mustache.MustacheException$Context: No method or field with name 'variable' on line xx
at com.samskivert.mustache.Template.checkForMissing(Template.java:316) ~[jmustache-1.13.jar:na]
at com.samskivert.mustache.Template.getValue(Template.java:224) ~[jmustache-1.13.jar:na]
at com.samskivert.mustache.Template.getValueOrDefault(Template.java:269) ~[jmustache-1.13.jar:na]
PS已通过Spring