请问mybatis-generator生成的entity为什么@Table注解是错误的?见图

图片说明

数据库名和表名中间有两个点,MySQL数据库。

自己解决了,参考 Mybatis Generator: How to generate all tables for a specified schema
1. 表的配置:<table tableName="%"/>
2. 在<jdbcConnection>标签下添加<property name="nullCatalogMeansCurrent" value="true"/>

你看下table注解里name应该填啥,只需要填个表名就可以了

导包,或者检查添加依赖