springboot、mybatis查询数据库出现的相关问题(一)@Id

在查询数据库用到主键时,往往会用到

versionNumberDao.selectByPrimaryKey(vno);

但出现系统异常时,有可能是实体类vno前没有添加@Id注解

猜你喜欢

转载自blog.csdn.net/ladysosoli/article/details/82462277