笔者在整理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.*;

 

相关文章:

  • 2021-08-14
  • 2021-09-28
  • 2018-10-05
  • 2021-07-02
  • 2021-12-19
  • 2021-10-08
  • 2018-04-02
  • 2019-05-23
猜你喜欢
  • 2021-11-24
  • 2021-05-11
  • 2019-06-18
  • 2021-10-28
  • 2021-04-22
  • 2018-09-27
  • 2022-01-20
  • 2021-05-03
相关资源
相似解决方案