您当前的位置: 首页 >  ar

mybatis报错:Type handler was null on parameter mapping or property ‘__frch_xxx_0’

发布时间:2021-03-12 09:48:03 ,浏览量:0

Type handler was null on parameter mapping or property ‘__frch_xxx_0’ 可知是mapper.xml写错,因为使用foreach语句时,两个foreach标签中间的参数写错了

<select id=" get" parameterType="entity" resultMap="java.util.List"> select id, name from t 
	where id in <foreach collection="list" item="param" open="(" close=")" separator=","> #{param.id} 这里直接用#{id}或#{param},就会报错 </foreach> </select> 
关注
打赏
1688896170
查看更多评论

暂无认证

  • 0浏览

    0关注

    115984博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录

0.0833s