首页
技术博客
登录
6mi
u
盘
搜
搜 索
技术博客
springboot通用Mapper使用selectByPrimaryKey时动态SQL语句不匹配
springboot通用Mapper使用selectByPrimaryKey时动态SQL语句不匹配
tech
2026-10-04
3
数据库字段
定义类
使用
结果给的SQL语句并不是通过主键查询
查了原因之后,有一种解释是通用Mapper的这个方法不能识别int类型,用Integer或Long类型不会发生这个问题。
转载请注明原文地址:https://tech.qufami.com/read-29285.html
最新回复
(
0
)