728x90
반응형
Failed to initialize JPA EntityManagerFactory: No identifier specified for entity 에러 해결법
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
위와 같은 오류가 발생했을 경우, 엔티티의 @Id 어노테이션 항목의 import 경로를 javax.persistence.id로 수정한다.
728x90
반응형
'JAVA > SpringBoot' 카테고리의 다른 글
JWT와 Access Token, Refresh Token, RTR 방식 정리 (1) | 2023.09.24 |
---|---|
[Springboot] 스프링부트 2.7 이상 QueryDsl build.gradle 설정 (0) | 2023.07.14 |
[Spring boot] java.lang.NullPointerException findAll() null 에러 해결 (0) | 2022.12.14 |
Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set (0) | 2022.12.01 |