@@ -72,7 +72,7 @@ public class BeetlTemplateEngine extends AbstractTemplateEngine {
template.binding(objectMap);
template.renderTo(fileOutputStream);
}
- LOGGER.debug("模板:" + templatePath + "; 文件:" + outputFile);
+ LOGGER.debug("模板:{}; 文件:{}", templatePath, outputFile);
@Override
@@ -52,7 +52,7 @@ public class EnjoyTemplateEngine extends AbstractTemplateEngine {
BufferedWriter writer = new BufferedWriter(ow)) {
writer.append(str);
@@ -51,7 +51,7 @@ public class FreemarkerTemplateEngine extends AbstractTemplateEngine {
try (FileOutputStream fileOutputStream = new FileOutputStream(outputFile)) {
template.process(objectMap, new OutputStreamWriter(fileOutputStream, ConstVal.UTF8));
@@ -72,7 +72,7 @@ public class VelocityTemplateEngine extends AbstractTemplateEngine {
template.merge(new VelocityContext(objectMap), writer);