0

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:

svb
  • 3
  • 3

1 Answers1

-1

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)