新增注释插件

This commit is contained in:
hewei
2017-06-09 15:36:02 +08:00
parent ccbdad7eba
commit ffcbdc12cb
3 changed files with 13 additions and 21 deletions
@@ -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();
@@ -118,26 +118,6 @@
</#list>
</#if>
*
* 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
*/
]]></comment>
<!-- #############################################################################################################
/**
* Adds the inner class comment.
*
* @param innerClass
* the inner class
* @param introspectedTable
* the introspected table
*/
-->
<comment ID="addClassComment"><![CDATA[
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table ${introspectedTable.fullyQualifiedTable}
*