美文网首页
mybatis代码生成器不生成example的方法

mybatis代码生成器不生成example的方法

作者: 爱余星痕 | 来源:发表于2018-08-16 18:23 被阅读0次

我用mybatis生成器,生成时总有两个model类,一个是PO类,一个是example,但example我不想要了,想去掉,查一下,修改相关配置即可.
原来配置为

 <table  tableName="zeus_org_role" domainObjectName="ZeusOrgRole">
        </table>

修改配置如下 :

    <table  tableName="zeus_org_role" domainObjectName="ZeusOrgRole"
                enableCountByExample="false" enableUpdateByExample="false"
                enableDeleteByExample="false" enableSelectByExample="false"
                selectByExampleQueryId="false">
    </table>

修改后,没再生成example类了

相关文章

网友评论

      本文标题:mybatis代码生成器不生成example的方法

      本文链接:https://www.haomeiwen.com/subject/mkiobftx.html