mybatis的异常

在mybatis查询时,一直在报java

org.apache.ibatis.builder.IncompleteElementException:apache

Could not find parameter map java.lang.Integermybatis

一直觉得这个查询语句有问题或者配置文件xml有错误。app

后来发现是别的配置文件错误ui

实际上这是由于在另外一个Mapper.xml里将parameterType写成了parameterMap,而mybaties中已经再也不用这个属性了。
<select id="getClassByID" parameterMap="String" resultMap="classResultMap">  xml

相关文章
相关标签/搜索