定义Id 时,引用的是 

 

import org.springframework.data.annotation.Id;

 实际应该引入:

import javax.persistence.Id;

相关阅读

评论可见,请评论后查看内容,谢谢!!!评论后请刷新页面。