mybatis异常:Could not find result map ......... 问题分析及解决

org.apache.ibatis.builder.IncompleteElementException: Could not find result map。。。。。。。

网上的大部分的改正方法是:

错误写法

  <select id="queryXXXCount" resultMap="java.util.Map" >

正确写法:

  <select id="queryXXXCount" resultType="java.util.Map">

我犯的错误是:

resultMap 中的id是小写

但在select标签中,resultMap中就变成大写的了,所以出错了。

 

posted @ 2019-03-06 21:47  y-xs  阅读(17158)  评论(1编辑  收藏  举报