mybatis中遇到的一个小问题【There is no result map named java.lang.Integer in this SqlMap】

阅读 80

2023-03-05


在使用mybatis的时候,配置一个查询总数的SQL语句,发现提示下面的问题:

There is no result map named java.lang.Integer in this SqlMap


百思不得骑姐

<select id="UPP_COUPON_TEMPLATE.selectCountByCouponTemplateQuery" resultMap="java.lang.Integer" parameterClass="com.taobao.fuwu.goods.model.marketing.dto.CouponTemplateQuery" >



后面对照了一下发现是返回值的类型定义出错,应该使用

resultClass="java.lang.Integer"

精彩评论(0)

0 0 举报