Intellij Idea Warning HQL whit SpringBoot

记录解决问题

  • 问题提示
    This inspection controls whether the Persistence QL Queries are error-checked
  • 网上的文章无一例外是屏蔽该检查项,这就违背了Idea code check的初衷,最后在StackOverFlow找到问题的
  • 解决方法:
    1.In Project structure settings (ctrl+alt+shift+s), select Facets and Add.
    2.Select JPA
    3.Select the module containing your mappings/annotated entities
    4.In the Modules view, select the module in question and the JPA facet underneath
    5.Add a reference to your descriptor (persistence.xml/orm.xml)
    6.Select your JPA provider from the dropdown
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容