自定义注解java
/** * 可经过这种方式扩展 CommentGenerator */ CommentGeneratorConfiguration commentGeneratorCfg = new CommentGeneratorConfiguration(); commentGeneratorCfg.setConfigurationType("org.mybatis.generator.internal.DefaultCommentGenerator1"); context.setCommentGeneratorConfiguration(commentGeneratorCfg);