Browse Source

代码生成文件名带空格问题

pull/116/head
Rex 5 years ago
parent
commit
cd10f48f53
  1. 12
      ruoyi-generator/src/main/java/com/ruoyi/generator/util/VelocityUtils.java

12
ruoyi-generator/src/main/java/com/ruoyi/generator/util/VelocityUtils.java

@ -128,27 +128,27 @@ public class VelocityUtils
if (template.contains("domain.java.vm"))
{
fileName = StringUtils.format("{}/domain/{}.java ", javaPath, className);
fileName = StringUtils.format("{}/domain/{}.java", javaPath, className);
}
else if (template.contains("mapper.java.vm"))
{
fileName = StringUtils.format("{}/mapper/{}Mapper.java ", javaPath, className);
fileName = StringUtils.format("{}/mapper/{}Mapper.java", javaPath, className);
}
else if (template.contains("service.java.vm"))
{
fileName = StringUtils.format("{}/service/I{}Service.java ", javaPath, className);
fileName = StringUtils.format("{}/service/I{}Service.java", javaPath, className);
}
else if (template.contains("serviceImpl.java.vm"))
{
fileName = StringUtils.format("{}/service/impl/{}ServiceImpl.java ", javaPath, className);
fileName = StringUtils.format("{}/service/impl/{}ServiceImpl.java", javaPath, className);
}
else if (template.contains("controller.java.vm"))
{
fileName = StringUtils.format("{}/controller/{}Controller.java ", javaPath, className);
fileName = StringUtils.format("{}/controller/{}Controller.java", javaPath, className);
}
else if (template.contains("mapper.xml.vm"))
{
fileName = StringUtils.format("{}/{}Mapper.xml ", mybatisPath, className);
fileName = StringUtils.format("{}/{}Mapper.xml", mybatisPath, className);
}
else if (template.contains("list.html.vm"))
{

Loading…
Cancel
Save