mybatis generator: Table Configuration employee matched more than one table

问题描述:

Table Configuration employee matched more than one table

原因:
在生成 javaBean 时,在(同一或不同)数据库中有多张表的名称与目标表的名称相同

解决方案:

<!--加上 schema 指定特定的数据库-->
        <table schema="ssmcrud" tableName="employee" domainObjectName="Employee"/>

猜你喜欢

转载自blog.csdn.net/sunshinegirl168660/article/details/83044607