1. 程式人生 > >Mybatis Could not find result map XXXX int

Mybatis Could not find result map XXXX int

出現這種情況

Mapper或者Dao的介面方法返回型別為Integer,而定義的resultMap,select 也是 多個欄位

根據你業務,檢查xml每個標籤,將xml中的返回型別,與mapper介面的返回型別修改一致即可

歡迎加入我們的交流群425783133