关于mybatis返回结果集问题

在mapper中在

<resultMap id="testMap"  type="bean"  ><!---这里的id对应的是select中的resultMap type表示的在存储过程返回的结果集中需要赋值的bean-->

<!-- column:库表的字段名 property:实体类里的属性名 -->
<id column="LABEL_ID" property="label_Id" />
<result column="LABEL_BARCODE" property="label_Barcode" />

</resultMap>

<select id="test" resultMap="testMap" parameterType="bean" >

调用存储过程

</select>

posted @ 2018-04-08 19:44  yujinming  阅读(180)  评论(0编辑  收藏  举报