개발/Spring

[ 오류데이터 ] org.hibernate.AnnotationException: No identifier specified for entity

leecrossun 2021. 6. 12. 18:32

org.hibernate.AnnotationException: No identifier specified for entity

 

 

# 원인

@Id annotation 사용 시 import 실수
import org.springframework.data.annotation.Id; (X)

 

# 해결

import javax.persistence.Id; 로 변경

반응형