A query was run and no Result Maps were found for the Mapped Statement 'com.hhwy.epes.review.othermajormeetinguser.domain

仔细查看mybatis的配置文件,发现遗漏一个属性:resultType

报错的配置是:<select id="ID"  parameterType="java.util.Map">
正确的配置应该是<select id="ID" parameterType="java.util.Map" resultType="java.util.Map">

A query was run and no Result Maps were found for the Mapped Statement 'com.hhwy.epes.review.othermajormeetinguser.domain

 

 最后总结下,就是mybatis中的所有查询,都必须返回resultType或者resultMap的值,否则就会报如上错误的

A query was run and no Result Maps were found for the Mapped Statement 'com.hhwy.epes.review.othermajormeetinguser.domain

 

A query was run and no Result Maps were found for the Mapped Statement 'com.hhwy.epes.review.othermajormeetinguser.domain

上一篇:在HbuilderX的Uni-app中引入crypto-js md5


下一篇:QTP数据驱动之读取Excel数据