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

        // 添加评论
        addJavaElementComment(topLevelClass, map, EnumNode.ADD_MODEL_CLASS_COMMENT);
    }
@Override
    public void addModelClassComment(TopLevelClass topLevelClass, IntrospectedTable introspectedTable) {
        Map<String, Object> map = new HashMap<>();
        map.put("mgb", MergeConstants.NEW_ELEMENT_TAG);
        map.put("topLevelClass", topLevelClass);
        map.put("introspectedTable", introspectedTable);

        // 添加评论
        addJavaElementComment(topLevelClass, map, EnumNode.ADD_MODEL_CLASS_COMMENT);
    }
@ Override public void addModelClassComment ( TopLevelClass topLevelClass , IntrospectedTable introspectedTable ) { Map < String , Object > map = new HashMap <> ( ) ; map . put ( "mgb" , MergeConstants . NEW_ELEMENT_TAG ) ; map . put ( "topLevelClass" , topLevelClass ) ; map . put ( "introspectedTable" , introspectedTable ) ; // 添加评论 addJavaElementComment ( topLevelClass , map , EnumNode . ADD_MODEL_CLASS_COMMENT ) ; }
Adds a comment for a model class.  The Java code merger should
be notified not to delete the entire class in case any manual
changes have been made.  So this method will always use the
"do not delete" annotation.

Because of difficulties with the Java file merger, the default implementation
of this method should NOT add comments.  Comments should only be added if
specifically requested by the user (for example, by enabling table remark comments).

@param topLevelClass
the top level class
@param introspectedTable
the introspected table
Adds a comment for a model class . The Java code merger should be notified not to delete the entire class in case any manual changes have been made . So this method will always use the do not delete annotation .