使用TKMapper通用Mapper时实体类要用@id声明主键,否则selectByPrimaryKey会查询所有的实体参数
一定要导入import javax.persistence.Id;
不要导成import org.springframework.data.annotation.Id;
使用TKMapper通用Mapper时实体类要用@id声明主键,否则selectByPrimaryKey会查询所有的实体参数
一定要导入import javax.persistence.Id;
不要导成import org.springframework.data.annotation.Id;