Org.Hibernate.AnnotationException: No Identifier Specified For Entity I don't have a id in my table

程序运行报错:Org.Hibernate.AnnotationException: No Identifier Specified For Entity I don't have a id in my table

Entity中@Id导包导错

应该是

import javax.persistence.Id;

而不是

import org.springframework.data.annotation.Id;

猜你喜欢

转载自blog.csdn.net/ka3p06/article/details/82382136