错误:org.hibernate.AnnotationException: No identifier specified for entity
原因:JPA所使用的Entity需要标注@Id,在引用错误的包导致了上述问题,将引用包改为下面的即可解决。
import javax.persistence.*;
转载于:https://www.cnblogs.com/tianmh/p/9829599.html
错误:org.hibernate.AnnotationException: No identifier specified for entity
原因:JPA所使用的Entity需要标注@Id,在引用错误的包导致了上述问题,将引用包改为下面的即可解决。
import javax.persistence.*;
转载于:https://www.cnblogs.com/tianmh/p/9829599.html