Freemarker template is not replaced with data model

邮差的信 提交于 2019-12-11 14:56:25

问题


I have followed the steps given in this link Demo and I am able to print out the template but after calling the below code and when I print html, it returns back the template minus the data. For example, "Dear ${user}," is simply "Dear ,"

String html = FreeMarkerTemplateUtils.processTemplateIntoString(t, model);

Am I missing something.I don't see any TemplateException.

来源:https://stackoverflow.com/questions/49138167/freemarker-template-is-not-replaced-with-data-model

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!