标签:toc ram work error source 实体 configure name except
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in
class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of ini
t method failed; nested exception is org.hibernate.AnnotationException: No identifier specified for entity
实体类中需要有唯一标识符,需要指定主键
在你实体类的主键上加上下面的两个注解即可。
@Id
@GeneratedValue
private Long id;
No identifier specified for entity
标签:toc ram work error source 实体 configure name except
原文地址:https://www.cnblogs.com/hoonick/p/11249128.html