MyBatis Generator 自定义注解

自定义注解java

/**
         * 可经过这种方式扩展 CommentGenerator
         */
        CommentGeneratorConfiguration commentGeneratorCfg = new CommentGeneratorConfiguration();
        commentGeneratorCfg.setConfigurationType("org.mybatis.generator.internal.DefaultCommentGenerator1");
        context.setCommentGeneratorConfiguration(commentGeneratorCfg);
  • DefaultCommentGenerator
相关文章
相关标签/搜索