Type handler was null on parameter mapping for property '__frch_productId_0'. It was either not spec
出现如上错误,
原因: 在mybatis使用<foreach>标签的时候 ,collection 为传入的List item为里面的对象,如果直接对item取值就会出现如此错误。
解决:对item进行取值
------------------------------------------------------
<foreach collection="param" ...
原创
2019-10-18 10:23:14 ·
2489 阅读 ·
0 评论