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