<resultMap id = "userMap" type="user">
<!-- column 数据库中的字段,property实体类中的属性 -->
<rolumn="user_id" property="userId"/>
<rolumn="user_name" property="userName"/>
</resultMap>
<select id="" resultMap="userMap">
select * from user where 1=1
</select>
10-14
7142
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)