MSA (Boot)/error
[JPA] AnnotationException: No identifier specified for entity
nang.
2020. 5. 28. 15:38
반응형
SMALL
문제
- JPA 사용 시 entity에
@Entity
붙이고 다시 실행시켰을 때 나는 에러
문제 원인
- entity 내 식별자를 못찾아서 에러가 남
문제 해결
- entity 클래스 내 userId 컬럼 필드 위에
@Id
어노테이션 붙여주기
반응형
LIST