mybatis的Parameter Maps collection does not contain value for xxx的问题解决方案

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_33223299/article/details/86477125

今天做项目的时候之前用mybatis生成好的mapper文件,然后今天在测试的时候报了一个Result Maps collection does not contain value..的错误,一直在比对参数的映射文件,又觉得没问题,最后上网查询然后自己检查后面写的mapper方法,发现有一个地方的参数类型写成parameterMap,最后将其改成parameterType就行了

解决了Mybatis中Parameter Maps collection does not contain value for xxx 的问题了。

注意:SQL映射的XML文件:mybatis官方已经将parameterMap废弃了,现在使用parameterType来处理。

猜你喜欢

转载自blog.csdn.net/qq_33223299/article/details/86477125