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".
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:
Then assign it as data source: