Cannot resolve table ‘r_resume‘ Inspection info: This inspection controls whether the Persistence

idea提醒 : Cannot resolve table ‘r_resume’ Inspection info: This inspection controls whether the Persistence ORM annotations are checked against configured Datasources

原因是因为idea在做Java开发的过程中,会进行很多检查,这次遇到的是在JPA中pojo类上的@Table注解的错误提醒,默认情况下@Table不设置name属性,那么就会按照驼峰命名原则去匹配数据中的表格Resume,但是数据中的是r_resume,所以需要设置name属性。

![在这里插入图片描述](https://img-blog.****img.cn/20201016145555411.png#pic_centerCannot resolve table ‘r_resume‘ Inspection info: This inspection controls whether the Persistence
提醒信息:Cannot resolve table ‘r_resume’
Inspection info: This inspection controls whether the Persistence ORM annotations are checked against configured Datasources
无法解析表“r\u resume”
检查信息:此检查控制是否根据配置的数据源检查持久性ORM注释

==============================
忽略粗错误即可,因为在测试代码中可以顺利匹配到r_resume,可以查询出数据,说明没问题,如果觉得不舒服可以通过设置取消该提示:
Cannot resolve table ‘r_resume‘ Inspection info: This inspection controls whether the Persistence
把这个√取消即可~