返回Map类型
1. 在xml中
<select id="selectUser" resultType="java.util.HashMap">
</select>
2.Mapper接口中
Map<String,Object> selectUser();
返回List<String>类型
3. 在xml中
<select id="selectUser" resultType="java.lang.String">
</select>
2.Mapper接口中
List<String> selectUser();
返回List<Map>类型
1.在xml中
<select id="selectUser" resultType="java.util.HashMap">
</select>
2.Mapper接口中
List<Map<String,Object>> selectUser ();
返回List<指定对象>类型
1.在xml中:
<resultMap id="baseResult" type="com.XXX.BscntrUnitInfoResult(对应对象)">
</resultMap>
<select id="getBscntrUnitInfoListByName" resultMap="baseResult">
</select>
2.Mapper接口中:
public List<BscntrUnitInfoResult> getName();