diff --git a/src/main/java/cokr/xit/tool/crudgen/service/bean/BeanFactory.java b/src/main/java/cokr/xit/tool/crudgen/service/bean/BeanFactory.java index 59290a7..16e89bd 100644 --- a/src/main/java/cokr/xit/tool/crudgen/service/bean/BeanFactory.java +++ b/src/main/java/cokr/xit/tool/crudgen/service/bean/BeanFactory.java @@ -9,7 +9,7 @@ import cokr.xit.tool.codegen.template.JavaTemplate; public class BeanFactory extends TemplateBasedCodeFactory { public BeanFactory() { - javaTemplate = new JavaTemplate("classpath:template/bean.tmpl"); + javaTemplate = new JavaTemplate("template/bean.tmpl"); } @Override diff --git a/src/main/java/cokr/xit/tool/crudgen/service/bean/ControllerFactory.java b/src/main/java/cokr/xit/tool/crudgen/service/bean/ControllerFactory.java index 4ab90f7..5043afd 100644 --- a/src/main/java/cokr/xit/tool/crudgen/service/bean/ControllerFactory.java +++ b/src/main/java/cokr/xit/tool/crudgen/service/bean/ControllerFactory.java @@ -8,7 +8,7 @@ import cokr.xit.tool.codegen.template.JavaTemplate; public class ControllerFactory extends TemplateBasedCodeFactory { public ControllerFactory() { - javaTemplate = new JavaTemplate("classpath:template/controller.tmpl"); + javaTemplate = new JavaTemplate("template/controller.tmpl"); } @Override diff --git a/src/main/java/cokr/xit/tool/crudgen/service/bean/MapperFactory.java b/src/main/java/cokr/xit/tool/crudgen/service/bean/MapperFactory.java index 635f422..05e7dce 100644 --- a/src/main/java/cokr/xit/tool/crudgen/service/bean/MapperFactory.java +++ b/src/main/java/cokr/xit/tool/crudgen/service/bean/MapperFactory.java @@ -9,7 +9,7 @@ import cokr.xit.tool.codegen.template.JavaTemplate; public class MapperFactory extends TemplateBasedCodeFactory { public MapperFactory() { - javaTemplate = new JavaTemplate("classpath:template/mapper.tmpl"); + javaTemplate = new JavaTemplate("template/mapper.tmpl"); } @Override diff --git a/src/main/java/cokr/xit/tool/crudgen/service/bean/MapperXmlFactory.java b/src/main/java/cokr/xit/tool/crudgen/service/bean/MapperXmlFactory.java index 3b67c94..e911269 100644 --- a/src/main/java/cokr/xit/tool/crudgen/service/bean/MapperXmlFactory.java +++ b/src/main/java/cokr/xit/tool/crudgen/service/bean/MapperXmlFactory.java @@ -13,7 +13,7 @@ import cokr.xit.tool.codegen.SourceWriter; import cokr.xit.tool.codegen.template.FileTemplate; public class MapperXmlFactory extends CodeFactory { - private FileTemplate template = new FileTemplate("classpath:template/mapper-xml.tmpl"); + private FileTemplate template = new FileTemplate("template/mapper-xml.tmpl"); @Override public String generate() { diff --git a/src/main/java/cokr/xit/tool/crudgen/service/bean/QueryFactory.java b/src/main/java/cokr/xit/tool/crudgen/service/bean/QueryFactory.java index d1803f8..4f4d5f0 100644 --- a/src/main/java/cokr/xit/tool/crudgen/service/bean/QueryFactory.java +++ b/src/main/java/cokr/xit/tool/crudgen/service/bean/QueryFactory.java @@ -8,7 +8,7 @@ import cokr.xit.tool.codegen.template.JavaTemplate; public class QueryFactory extends TemplateBasedCodeFactory { public QueryFactory() { - javaTemplate = new JavaTemplate("classpath:template/query-request.tmpl"); + javaTemplate = new JavaTemplate("template/query-request.tmpl"); } @Override diff --git a/src/main/java/cokr/xit/tool/crudgen/service/bean/ServiceBeanFactory.java b/src/main/java/cokr/xit/tool/crudgen/service/bean/ServiceBeanFactory.java index 064c5e0..1fa4404 100644 --- a/src/main/java/cokr/xit/tool/crudgen/service/bean/ServiceBeanFactory.java +++ b/src/main/java/cokr/xit/tool/crudgen/service/bean/ServiceBeanFactory.java @@ -8,7 +8,7 @@ import cokr.xit.tool.codegen.template.JavaTemplate; public class ServiceBeanFactory extends TemplateBasedCodeFactory { public ServiceBeanFactory() { - javaTemplate = new JavaTemplate("classpath:template/service-bean.tmpl"); + javaTemplate = new JavaTemplate("template/service-bean.tmpl"); } @Override diff --git a/src/main/java/cokr/xit/tool/crudgen/service/bean/ServiceFactory.java b/src/main/java/cokr/xit/tool/crudgen/service/bean/ServiceFactory.java index a8dd963..677843e 100644 --- a/src/main/java/cokr/xit/tool/crudgen/service/bean/ServiceFactory.java +++ b/src/main/java/cokr/xit/tool/crudgen/service/bean/ServiceFactory.java @@ -9,7 +9,7 @@ import cokr.xit.tool.codegen.template.JavaTemplate; public class ServiceFactory extends TemplateBasedCodeFactory { public ServiceFactory() { - javaTemplate = new JavaTemplate("classpath:template/service-interface.tmpl"); + javaTemplate = new JavaTemplate("template/service-interface.tmpl"); } @Override diff --git a/src/main/java/cokr/xit/tool/crudgen/service/bean/TestFactory.java b/src/main/java/cokr/xit/tool/crudgen/service/bean/TestFactory.java index e47b8a9..df83b3f 100644 --- a/src/main/java/cokr/xit/tool/crudgen/service/bean/TestFactory.java +++ b/src/main/java/cokr/xit/tool/crudgen/service/bean/TestFactory.java @@ -19,7 +19,7 @@ public class TestFactory extends TemplateBasedCodeFactory { } public TestFactory() { - javaTemplate = new JavaTemplate("classpath:template/service-test.tmpl"); + javaTemplate = new JavaTemplate("template/service-test.tmpl"); } public String generate() {