问题
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