From e013bc4bc154aca2fff9258e6bc2e127ca2c3ac9 Mon Sep 17 00:00:00 2001 From: lsy <18332763730@163.com> Date: Sat, 2 Dec 2017 22:09:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...o.java => MybatisGeneratorExtendMojo.java} | 2 +- .../generator/extend/util/FreemarkerUtil.java | 5 -- .../src/main/resources/generatorConfig.xml | 80 ------------------- .../resources/mybatisGenerator.properties | 5 -- .../resources/templates/generatorConfig.ftl | 2 +- 5 files changed, 2 insertions(+), 92 deletions(-) rename boot-starter/boot-starter-maven-plugin/mybatis-generator-extend-maven-plugin/src/main/java/com/micro/fast/mybatis/generator/extend/mojo/{MyabtisGeneratorExtendMojo.java => MybatisGeneratorExtendMojo.java} (95%) delete mode 100644 boot-starter/boot-starter-maven-plugin/mybatis-generator-extend-maven-plugin/src/main/resources/generatorConfig.xml delete mode 100644 boot-starter/boot-starter-maven-plugin/mybatis-generator-extend-maven-plugin/src/main/resources/mybatisGenerator.properties diff --git a/boot-starter/boot-starter-maven-plugin/mybatis-generator-extend-maven-plugin/src/main/java/com/micro/fast/mybatis/generator/extend/mojo/MyabtisGeneratorExtendMojo.java b/boot-starter/boot-starter-maven-plugin/mybatis-generator-extend-maven-plugin/src/main/java/com/micro/fast/mybatis/generator/extend/mojo/MybatisGeneratorExtendMojo.java similarity index 95% rename from boot-starter/boot-starter-maven-plugin/mybatis-generator-extend-maven-plugin/src/main/java/com/micro/fast/mybatis/generator/extend/mojo/MyabtisGeneratorExtendMojo.java rename to boot-starter/boot-starter-maven-plugin/mybatis-generator-extend-maven-plugin/src/main/java/com/micro/fast/mybatis/generator/extend/mojo/MybatisGeneratorExtendMojo.java index 0c02aef..35f71da 100644 --- a/boot-starter/boot-starter-maven-plugin/mybatis-generator-extend-maven-plugin/src/main/java/com/micro/fast/mybatis/generator/extend/mojo/MyabtisGeneratorExtendMojo.java +++ b/boot-starter/boot-starter-maven-plugin/mybatis-generator-extend-maven-plugin/src/main/java/com/micro/fast/mybatis/generator/extend/mojo/MybatisGeneratorExtendMojo.java @@ -15,7 +15,7 @@ import java.util.Map; import java.util.Set; @Mojo(name = "generateFiles") -public class MyabtisGeneratorExtendMojo extends AbstractMojo { +public class MybatisGeneratorExtendMojo extends AbstractMojo { @Override diff --git a/boot-starter/boot-starter-maven-plugin/mybatis-generator-extend-maven-plugin/src/main/java/com/micro/fast/mybatis/generator/extend/util/FreemarkerUtil.java b/boot-starter/boot-starter-maven-plugin/mybatis-generator-extend-maven-plugin/src/main/java/com/micro/fast/mybatis/generator/extend/util/FreemarkerUtil.java index 845db48..9d6ad15 100644 --- a/boot-starter/boot-starter-maven-plugin/mybatis-generator-extend-maven-plugin/src/main/java/com/micro/fast/mybatis/generator/extend/util/FreemarkerUtil.java +++ b/boot-starter/boot-starter-maven-plugin/mybatis-generator-extend-maven-plugin/src/main/java/com/micro/fast/mybatis/generator/extend/util/FreemarkerUtil.java @@ -1,15 +1,10 @@ package com.micro.fast.mybatis.generator.extend.util; -import com.micro.fast.mybatis.generator.extend.mojo.MyabtisGeneratorExtendMojo; -import com.micro.fast.mybatis.generator.extend.service.MybatisGeneratorExtend; import freemarker.core.ParseException; import freemarker.template.*; import java.io.*; -import java.net.URL; -import java.util.Iterator; import java.util.Map; -import java.util.Set; /** * 根据freemarker模板生成文件 diff --git a/boot-starter/boot-starter-maven-plugin/mybatis-generator-extend-maven-plugin/src/main/resources/generatorConfig.xml b/boot-starter/boot-starter-maven-plugin/mybatis-generator-extend-maven-plugin/src/main/resources/generatorConfig.xml deleted file mode 100644 index 3af8aaf..0000000 --- a/boot-starter/boot-starter-maven-plugin/mybatis-generator-extend-maven-plugin/src/main/resources/generatorConfig.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file diff --git a/boot-starter/boot-starter-maven-plugin/mybatis-generator-extend-maven-plugin/src/main/resources/mybatisGenerator.properties b/boot-starter/boot-starter-maven-plugin/mybatis-generator-extend-maven-plugin/src/main/resources/mybatisGenerator.properties deleted file mode 100644 index 93e5c90..0000000 --- a/boot-starter/boot-starter-maven-plugin/mybatis-generator-extend-maven-plugin/src/main/resources/mybatisGenerator.properties +++ /dev/null @@ -1,5 +0,0 @@ -db.driverLocation=/root/mysql-connector-java-5.1.40-bin.jar -db.driverClassName=com.mysql.jdbc.Driver -db.url=jdbc:mysql://172.17.0.1:3317/micro?useUncoide=true&chracterEncoding=utf-8&useSSL=false -db.username=root -db.password=studyj2e \ No newline at end of file diff --git a/boot-starter/boot-starter-maven-plugin/mybatis-generator-extend-maven-plugin/src/main/resources/templates/generatorConfig.ftl b/boot-starter/boot-starter-maven-plugin/mybatis-generator-extend-maven-plugin/src/main/resources/templates/generatorConfig.ftl index 43dbe90..3771ad9 100644 --- a/boot-starter/boot-starter-maven-plugin/mybatis-generator-extend-maven-plugin/src/main/resources/templates/generatorConfig.ftl +++ b/boot-starter/boot-starter-maven-plugin/mybatis-generator-extend-maven-plugin/src/main/resources/templates/generatorConfig.ftl @@ -67,7 +67,7 @@ <#list mybatisGenerator.tablesNameAndDoMainObjectsName?keys as key > -
+
\ No newline at end of file