string模板合成器

public String mergeTemplate(Map<String, Object> dataMap, String templateFileName) {
StringWriter sw = new StringWriter();
templateMerger.mergeTemplate(dataMap, templateFileName, sw);
return sw.toString();
}

你可能感兴趣的:(String)