src/main/java/com/itfsw/mybatis/generator/plugins/utils/enhanced/TemplateCommentGenerator.java
@Override
    public void addFieldComment(Field field, IntrospectedTable introspectedTable, IntrospectedColumn introspectedColumn) {
        Map<String, Object> map = new HashMap<>();
        map.put("mgb", MergeConstants.NEW_ELEMENT_TAG);
        map.put("field", field);
        map.put("introspectedTable", introspectedTable);
        map.put("introspectedColumn", introspectedColumn);

        // 添加评论
        addJavaElementComment(field, map, EnumNode.ADD_FIELD_COMMENT);
    }
@Override
    public void addFieldComment(Field field, IntrospectedTable introspectedTable, IntrospectedColumn introspectedColumn) {
        Map<String, Object> map = new HashMap<>();
        map.put("mgb", MergeConstants.NEW_ELEMENT_TAG);
        map.put("field", field);
        map.put("introspectedTable", introspectedTable);
        map.put("introspectedColumn", introspectedColumn);

        // 添加评论
        addJavaElementComment(field, map, EnumNode.ADD_FIELD_COMMENT);
    }
@ Override public void addFieldComment ( Field field , IntrospectedTable introspectedTable , IntrospectedColumn introspectedColumn ) { Map < String , Object > map = new HashMap <> ( ) ; map . put ( "mgb" , MergeConstants . NEW_ELEMENT_TAG ) ; map . put ( "field" , field ) ; map . put ( "introspectedTable" , introspectedTable ) ; map . put ( "introspectedColumn" , introspectedColumn ) ; // 添加评论 addJavaElementComment ( field , map , EnumNode . ADD_FIELD_COMMENT ) ; }
This method should add a Javadoc comment to the specified field. The field is related to the specified table and
is used to hold the value of the specified column.
<p>

<b>Important:</b> This method should add a the nonstandard JavaDoc tag "@mbg.generated" to the comment. Without
this tag, the Eclipse based Java merge feature will fail.

@param field
the field
@param introspectedTable
the introspected table
@param introspectedColumn
the introspected column
This method should add a Javadoc comment to the specified field . The field is related to the specified table and is used to hold the value of the specified column . <p >