Springboot- Caused by: org.hibernate.AnnotationException: No identifier specified for entity:

 错误与异常:

Caused by: org.hibernate.AnnotationException: No identifier specified for entity:

原因:引用了不对的包,去掉import org.springframework.data.annotation.Id;即可 。

 

posted @ 2019-02-19 09:50  RZ_Lee  阅读(321)  评论(0编辑  收藏  举报