0
点赞
收藏
分享

微信扫一扫

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

松鼠树屋 2023-03-05 阅读 80


在使用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 条评论