Browse Source

修改配置文件

yq 3 years ago
parent
commit
513ad8c871

+ 6 - 6
mhfire-controller/src/main/java/com/bizmatics/mhfire/controller/MybatisGeneratorUtils.java

@@ -19,7 +19,7 @@
 //public class MybatisGeneratorUtils {
 //    public static void main(String[] args) {
 //        //修改成自己的模块名称
-//        String[] models = {"test-controller", "test-service", "test-model", "test-persistence"};
+//        String[] models = {"mhfire-controller", "mhfire-service", "mhfire-model", "mhfire-mapping"};
 //        for (String model : models) {
 //            shell(model);
 //        }
@@ -52,7 +52,7 @@
 //
 //        // 3、包配置
 //        PackageConfig pc = new PackageConfig();
-//        pc.setParent("com.bizmatics");
+//        pc.setParent("com.bizmatics.mhfire");
 //        pc.setController("controller.web");
 //        pc.setEntity("model");
 //        pc.setMapper("persistence.mapper");
@@ -77,7 +77,7 @@
 //        // 关闭默认 xml 生成,调整生成 至 根目录
 //        //修改对应的模块名称
 //        TemplateConfig tc = new TemplateConfig();
-//        if ("test-persistence".equals(model)) {
+//        if ("mhfire-mapping".equals(model)) {
 //            tc.setController(null);
 //            tc.setEntity(null);
 //            tc.setService(null);
@@ -105,18 +105,18 @@
 //            cfg.setFileOutConfigList(focList);
 //            mpg.setCfg(cfg);
 //            tc.setXml(null);
-//        } else if ("test-model".equals(model)) {
+//        } else if ("mhfire-model".equals(model)) {
 //            tc.setController(null);
 //            tc.setService(null);
 //            tc.setServiceImpl(null);
 //            tc.setMapper(null);
 //            tc.setXml(null);
-//        } else if ("test-service".equals(model)) {
+//        } else if ("mhfire-service".equals(model)) {
 //            tc.setController(null);
 //            tc.setMapper(null);
 //            tc.setXml(null);
 //            tc.setEntity(null);
-//        } else if ("test-controller".equals(model)) {
+//        } else if ("mhfire-controller".equals(model)) {
 //            tc.setMapper(null);
 //            tc.setXml(null);
 //            tc.setService(null);