From 4d24804f2c92308f28e1709d7b7e17d0bbe5a3bb Mon Sep 17 00:00:00 2001 From: hewei Date: Fri, 9 Jun 2017 17:10:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=E8=B7=B3=E8=BD=AC=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 15c323e..4dcfad0 100644 --- a/README.md +++ b/README.md @@ -633,7 +633,7 @@ public class Test { } } ``` -### 12. 自定义注释插件 +### 13. 自定义注释插件 Mybatis Generator是原生支持自定义注释的(commentGenerator配置type属性),但使用比较麻烦需要自己实现CommentGenerator接口并打包配置赖等等。 该插件借助freemarker极佳的灵活性实现了自定义注释的快速配置。 >warning: 下方提供了一个参考模板,需要注意${mgb}的输出,因为Mybatis Generator就是通过该字符串判断是否为自身生成代码进行覆盖重写。