Home > OS >  Error creating bean with name 'entityManagerFactory' defined in class path resource.No ide
Error creating bean with name 'entityManagerFactory' defined in class path resource.No ide

Time:09-01

Caused by: 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 init method failed; nested exception is org.hibernate.AnnotationException: No identifier specified for entity:

CodePudding user response:

I had the same problem. In my case,its because of wrong @Id annotation import. It should be :- import javax.persistence.Id;

ref:-(https://stackoverflow.com/a/15323836/19262829)

  • Related