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.csdnimg.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
把这个√取消即可~

相关文章:

  • 2021-12-20
  • 2021-08-31
  • 2021-09-01
  • 2021-04-21
  • 2021-08-03
  • 2021-07-16
  • 2021-08-24
猜你喜欢
  • 2021-10-31
  • 2022-01-21
  • 2021-10-25
  • 2022-01-13
  • 2021-09-14
  • 2021-07-05
  • 2021-11-15
相关资源
相似解决方案