MyBatis 实践中遇到的问题

来源:互联网 发布:阿里云系统root 编辑:程序博客网 时间:2024/06/07 21:51

1.org.apache.ibatis.builder.IncompleteElementException: Could not find parameter map

启动项目的时候报错,但是找到对应位置没有发现错误,最后发现是出了问题。mybaties中只要有任何一个地方报错,都无法通过。最后发现是另个一个方法上将parameterType写成了parameterMap了。
问题代码:

<select id="selectAuditList" resultMap="BaseResultMap"  parameterMap="java.util.Map">...</select>

修改后:

<select id="selectAuditList" resultMap="BaseResultMap"  parameterType="java.util.Map">...</select>
原创粉丝点击