1. The mapping may be done using the values, the mapping mode may not be employed
<resultMap id="configMap" type="java.util.Map" >
<result column="SCName" property="key" jdbcType="VARCHAR" />
<result column="SCValue" property="value" jdbcType="VARCHAR" />
</resultMap>
<!-- 模糊查询出多条记录 -->
<select id="selectBySCName" resultMap="configMap" parameterType="java.lang.String">
select "SCName" , "SCValue" from "SystemCongfigures" where "SCName" like #{SCName}
</select>
1. Use MapKey need to specify worth as key attributes,
@MapKey("key") public Map<String, Object> selectBySCName(@Param("SCName") String SCName);