diff --git a/pom.xml b/pom.xml index 2fc8a15..3dae51c 100644 --- a/pom.xml +++ b/pom.xml @@ -41,6 +41,18 @@ slf4j-api 1.7.22 + + + org.freemarker + freemarker + 2.3.26-incubating + + + + dom4j + dom4j + 1.6.1 + junit diff --git a/src/main/java/com/itfsw/mybatis/generator/plugins/utils/BasePlugin.java b/src/main/java/com/itfsw/mybatis/generator/plugins/utils/BasePlugin.java index 71511fd..d50be98 100644 --- a/src/main/java/com/itfsw/mybatis/generator/plugins/utils/BasePlugin.java +++ b/src/main/java/com/itfsw/mybatis/generator/plugins/utils/BasePlugin.java @@ -58,7 +58,7 @@ public class BasePlugin extends PluginAdapter { if (cfg == null || cfg.getProperty(CommentPlugin.PRE_TEMPLATE) == null){ if (context.getCommentGenerator() instanceof DefaultCommentGenerator){ // 使用默认模板引擎 - commentGenerator = new TemplateCommentGenerator("mybatis-generator-comment.ftl", true); + commentGenerator = new TemplateCommentGenerator("default-comment.ftl", true); } else { // 用户自定义 commentGenerator = context.getCommentGenerator(); diff --git a/src/main/resources/mybatis-generator-comment.ftl b/src/main/resources/default-comment.ftl similarity index 93% rename from src/main/resources/mybatis-generator-comment.ftl rename to src/main/resources/default-comment.ftl index 1232727..0031948 100644 --- a/src/main/resources/mybatis-generator-comment.ftl +++ b/src/main/resources/default-comment.ftl @@ -118,26 +118,6 @@ * - * This class was generated by MyBatis Generator. - * This class corresponds to the database table ${introspectedTable.fullyQualifiedTable} - * - * ${mgb} - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - ]]> - - -