Intellij idea entity class error Cannot resolve table'XX'
· First, the prompt can be ignored
Does not affect your function! If it is not OCD, duck ignore it.
· Idea add your database information
1. Open the Database interface
2. Add the corresponding database
3. Configure database information
4. Final effect
Here you can go to operate your database, but the problem has not been solved yet, we will continue to look down.
· Corresponding entity classes to tables
1. view->Persistence
2. The Persistence window appears
Right click on Factory -> Assign Data Sources
Configure the corresponding DataSource
Let's look at the final result next.
This article is over, I hope to help you.