Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm trying to run a spring boot app, but intellij is showing me an error:

"Cannot resolve table TB_PRODUTO"

Intellij it's giving a tip to assign a datasource, but the list is empty

enter image description here

what could be the problem?

like image 215
Rômulo Sorato Avatar asked Nov 01 '19 22:11

Rômulo Sorato


1 Answers

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

like image 128
Emarco Avatar answered Sep 24 '22 10:09

Emarco