SpringBoot整合Jpa;报错:No identifier specified for entity

Springboot整合Jpa,启动项目时报:No identifier specified for entity

控制台报错信息:没有为实体指定标识符。
SpringBoot整合Jpa;报错:No identifier specified for entity
原因:
@Id:导包导错;导的包是:import org.springframework.data.annotation.Id

解决:
导入import javax.persistence.Id;下的包
SpringBoot整合Jpa;报错:No identifier specified for entity