Invocation of init method failed; nested exception is org.hibernate.AnnotationException: No identifier specified for entity
spring boot で jpa をつかって entity がエラーになるとき
Invocation of init method failed; nested exception is org.hibernate.AnnotationException: No identifier specified for entity
とかってメッセージがでる。
原因は import すべき @Id がまちがってる
import org.springframework.data.annotation.Id;
じゃなくて
import javax.persistence.Id;
だ。
たまにハマるので。