Spring Boot笔记-IDEA使用JPA映射时解决cannot resolve column或cannot resolve table

view->Tool Windows->Database

默认情况下看IDEA的左边:

添加一个MySQL库,连接测试成功后!

进入View->Tool Windows->Persistence

随后点击Assign Data Sources...

选择一个即可,就不会报错了!!!嘤嘤嘤(这个是突然间想起来乔碧萝殿下才打的)

发布了1269 篇原创文章 · 获赞 1970 · 访问量 179万+

猜你喜欢

转载自blog.csdn.net/qq78442761/article/details/104287164