使用TKMapper通用Mapper时一定声明主键,否则selectByPrimaryKey会查询所有的实体参数,一定要导入import javax.persistence.Id;不要导成import org.springframework.data.annotation.Id;
使用TKMapper主键的坑
最新推荐文章于 2023-12-28 23:57:02 发布
使用TKMapper通用Mapper时一定声明主键,否则selectByPrimaryKey会查询所有的实体参数,一定要导入import javax.persistence.Id;不要导成import org.springframework.data.annotation.Id;