MyBatis Generator 自定義註解

自定義註解java

/**
         * 可經過這種方式擴展 CommentGenerator
         */
        CommentGeneratorConfiguration commentGeneratorCfg = new CommentGeneratorConfiguration();
        commentGeneratorCfg.setConfigurationType("org.mybatis.generator.internal.DefaultCommentGenerator1");
        context.setCommentGeneratorConfiguration(commentGeneratorCfg);
  • DefaultCommentGenerator
相關文章
相關標籤/搜索