no identifier specified for entity 해결

gnoesnooj·2022년 3월 7일
0

티모태 postman 사용을 위해 실행을 하려니,
no identifier specified for entity 에러가 생겼다.

위치를 보니 Post 클래스의 id 가 javax.persistence.Id
->가 아닌 다른 org.springframework.data.annotation.Id 가 import되고 있어서 생긴 문제 였다.

import org.springframework.data.annotation.Id
-> import javax.persistence.Id; 로 수정 !

profile
누구나 믿을 수 있는 개발자가 되자 !

0개의 댓글