会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
loading
Himmelbleu
管理
2023年5月31日
expected one result (or null) to be returned by selectone(), but found: 5
摘要: 一对多的情况下,需要确保主表有 id 标签,用于标识,让 mybatis 能够正常映射结果。 <resultMap id="rs1" type="Book" autoMapping="true"> add:[<id property="id" column="id"/>] <collection p
阅读全文
posted @ 2023-05-31 00:11 Himmelbleu
阅读(25)
评论(0)
推荐(0)
编辑