mybatis 报错Result Maps collection does not contain value for java.lang.Integer

Posted 学海无涯

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mybatis 报错Result Maps collection does not contain value for java.lang.Integer相关的知识,希望对你有一定的参考价值。

重点:报错的方法和xml文件不一定是错误的位置,如果有多个xml文件,必须检查所有的文件

搜索  resultMap="java.lang.Integer" 

找到对应的文件,改为 resultType="java.lang.Integer" 

1.检查mybatis的xml配置

2.在某处肯定有配错了的,如"resultMap" -->"resultType"

 

https://bbs.csdn.net/topics/392295493 

以上是关于mybatis 报错Result Maps collection does not contain value for java.lang.Integer的主要内容,如果未能解决你的问题,请参考以下文章

解决mybatis报错Result Maps collection does not contain value for java.lang.Integer

MyBatis报错:A query was run and no Result Maps were found for the Mapped Statement

MyBatis报错:A query was run and no Result Maps were found for the Mapped Statement

MyBatis报错:A query was run and no Result Maps were found for the Mapped Statement

mybatis报错:A query was run and no Result Maps were found for the Mapped StatementProperty [login_ip(代

报错,Result Maps collection already contains value for