自定義註解java
/** * 可經過這種方式擴展 CommentGenerator */ CommentGeneratorConfiguration commentGeneratorCfg = new CommentGeneratorConfiguration(); commentGeneratorCfg.setConfigurationType("org.mybatis.generator.internal.DefaultCommentGenerator1"); context.setCommentGeneratorConfiguration(commentGeneratorCfg);