org.hibernate.AnnotationException: No identifier specified for entity 错误解决

主键对应的属性上加上@Id注解,对应javax.persistence.Id

@Id
private Long id;

 

posted @ 2018-10-29 10:44  花拾夕  阅读(5053)  评论(0编辑  收藏  举报