您的位置:首页 > 新闻 > 会展 > 北京国际化品牌设计_类似有点料的推广平台_刷排名的软件是什么_聊城seo优化

北京国际化品牌设计_类似有点料的推广平台_刷排名的软件是什么_聊城seo优化

2025/5/24 12:14:47 来源:https://blog.csdn.net/qq_26632895/article/details/146380111  浏览:    关键词:北京国际化品牌设计_类似有点料的推广平台_刷排名的软件是什么_聊城seo优化
北京国际化品牌设计_类似有点料的推广平台_刷排名的软件是什么_聊城seo优化

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter ‘item’ not found. Available parameters are [xxx, list, xxx]
Mapper中方法如下

 @Insert(" INSERT INTO xxxxxx (\n" +"        table_id,\n" +"        code,\n" +"        field_key,\n" +"        create_time,\n" +"        update_time\n" +"        )\n" +"        VALUES\n" +"        <foreach collection=\"list\" item=\"item\" separator=\",\">\n" +"            (\n" +"            #{item.tableId},\n" +"            #{item.code},\n" +"            #{item.fieldKey},\n" +"            #{item.createTime},\n" +"            #{item.updateTime}\n" +"            )\n" +"        </foreach>")int batchInsert(List<xxxx> xxx);

看着是没错的, 一直报上面的错。
解法:
@Insert中的 sql加上 包裹即可

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com