问题:IDEA爆红,Cannot resolve table xxx 可以正常运行,看着不爽 解决: database 选择对应数据库 配置好相应数据库 将实体类和表对应 找到对应的表,右键 Assign Data Sources 选择配置好的datasource 成功不爆红了