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