笔者在整理Spring Boot2.0系列教程时候,整合spring data jpa时遇到一个注解错误。

错误信息如下:

Caused by: org.hibernate.AnnotationException: No identifier specified for entity: com.boot.model.Student

Spring Boot2.0整合spring data jpa报错No identifier specified for entity解决方案

 

Spring Boot2.0整合spring data jpa报错No identifier specified for entity解决方案 

解决方案:

import org.springframework.data.annotation.Id;

换为

import javax.persistence.*;

 

相关文章:

  • 2022-12-23
  • 2021-12-13
  • 2022-02-11
  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
猜你喜欢
  • 2021-08-04
  • 2021-11-24
  • 2021-05-11
  • 2022-12-23
  • 2022-01-17
  • 2021-12-29
  • 2022-01-17
相关资源
相似解决方案