1. 程式人生 > >mybatis 報錯Result Maps collection does not contain value for java.lang.Integer

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