修改代码生成器

This commit is contained in:
TinyAnts 2022-08-15 15:14:12 +08:00
parent 816de01bee
commit 6a16adba7c
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ public class GenerateServiceImpl implements IGenerateService {
StringWriter sw = new StringWriter();
Template tpl = Velocity.getTemplate(template, GenConstants.UTF8);
tpl.merge(context, sw);
map.put(template, sw.toString());
map.put(template.replace(".vm", ""), sw.toString());
System.out.println(sw);
}