템플릿 경로 수정

master
mjkhan21 7 months ago
parent 3499d41630
commit 81b7ab5fd1

@ -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

@ -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

@ -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

@ -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() {

@ -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

@ -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

@ -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

@ -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() {

Loading…
Cancel
Save