<mapper namespace="com.POJO.User">
<select id="findAllUser" resultMap="resultMap">
select * from t_user
</select>
<resultMap type="com.POJO.User" id="resultMap">
<id property="id" column="t_id"/>
<result property="name" column="t_name"/>
<result property="age" column="t_age"/>
</resultMap>
</mapper>
扫描二维码,在手机上阅读!
评论