Commit 0e09ec9f by yuwei

2.0.0项目初始化

parent 09265e3b
......@@ -22,6 +22,7 @@ public class VelocityTemplateEngine extends AbstractTemplateEngine {
public VelocityTemplateEngine() {
}
@Override
public VelocityTemplateEngine init(ConfigBuilder configBuilder) {
super.init(configBuilder);
if (null == this.velocityEngine) {
......@@ -37,6 +38,7 @@ public class VelocityTemplateEngine extends AbstractTemplateEngine {
return this;
}
@Override
public void writer(Map<String, Object> objectMap, String templatePath, String outputFile) throws Exception {
if (!StringUtils.isEmpty(templatePath)) {
Template template = this.velocityEngine.getTemplate(templatePath, ConstVal.UTF8);
......@@ -112,6 +114,7 @@ public class VelocityTemplateEngine extends AbstractTemplateEngine {
}
}
@Override
public String templateFilePath(String filePath) {
return null != filePath && !filePath.contains(".vm") ? filePath + ".vm" : filePath;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment