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 

posted on 2018-12-17 15:10  tigerloveapple  阅读(2661)  评论(1编辑  收藏  举报