springboot报错---No identifier specified for entity: com.example.demo.entity.User
生活随笔
收集整理的這篇文章主要介紹了
springboot报错---No identifier specified for entity: com.example.demo.entity.User
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
No identifier specified for entity: com.example.demo.entity.User
報錯內容如下:
因為JPA缺少@id導致的
解決方法:
添加如圖內容:
重新運行即可。
個人文件里有很多粉絲專享文件,教程和源碼
總結
以上是生活随笔為你收集整理的springboot报错---No identifier specified for entity: com.example.demo.entity.User的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: springboot---【jdbc】数
- 下一篇: MySql---数据库笔记(功能齐全)