JPA 出现No identifier specified for entity

JPA 出现No identifier specified for entity
是因为没有使用@Id ,另外需要注意@Id是位于java.persistence包下面的而不是org.springframework.date.annotation下面

发布了170 篇原创文章 · 获赞 20 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/qq_41967899/article/details/100727918