0
点赞
收藏
分享

微信扫一扫

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

天涯学馆 2022-03-14 阅读 90
xmljava


Type handler was null on parameter mapping or property ‘__frch_xxx_0’

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

可知是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>



举报

相关推荐

0 条评论