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

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

原因:

1、没有给实体类ID

解决方案

这里不是spring的@Id,否则报错

 

posted @ 2018-12-29 14:45  韦邦杠  阅读(3315)  评论(0编辑  收藏  举报