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

原因:

1、没有给实体类ID

解决方案

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

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

 

相关文章: