错误描述:
A query was run and no Result Maps were found for the Mapped Statement ‘XXX.dao.XXXMapper.XXX’. It’s likely that neither a Result Type nor a Result Map was specified.
错误原因:
使用mybatis进行查询时,没有给定resultType值出现的错误。resultType是查询对象的类型
解决方式:
使用mybatis进行查询时,给定resultType查询对象的类型
如:
select id=“countDrugRanking” resultType=“integer”