Cannot resolve table "'xx"" in spring boot application

You can turn off this validation from JPA facet settings.

Just go to Intellij IDEA settings/Editor/Inspections and uncheck "unresolved database references in annotations".

Intellij Settings Screenshot


file => setting => Editor = Inspections => JPA => uncheck "unresolved database references in annotations".and the problem will be solved


I resolved going into view -> tool windows -> database.

Intellij needs that you put manually the database source.


Try add your database to IDE:

enter image description here

Then assign it as data source:

enter image description here