Caused by: org.hibernate.AnnotationException: No identifier specified for en . . . . .
程序员文章站
2022-04-12 16:26:38
...
原文地址: https://blog.csdn.net/xiaohanguo_xiao/article/details/99467604
使用技术
springboot+jpa+postgresql
问题
import javax.persistence.Id;//使用这个包
@Id
@GeneratedValue
@Column(name = "id")
private Integer id;
//不是这个包
// :import org.springframework.data.annotation.Id;
推荐阅读
-
错误org.hibernate.AnnotationException: No identifier specified for entity
-
JPA 异常: Caused by: org.hibernate.AnnotationException: No identifier specified for entity
-
Caused by: org.hibernate.AnnotationException: No identifier specified for entity
-
Caused by: org.hibernate.AnnotationException: No identifier specified for en . . . . .
-
Caused by: org.hibernate.AnnotationException: No identifier specified for entity
-
Caused by: org.hibernate.AnnotationException: No identifier specified for entity:
-
Caused by: org.hibernate.AnnotationException: No identifier specified for en . . . . .