一、循环key
<foreach collection="map.keys" item="key" separator="and">
${key} = #{key}
</foreach>
二、循环values
<foreach collection="map.values" item="value" separator="and">
${value} = #{value}
</foreach>
三、循环获取key和值:
<foreach collection="map.keys" item="key" separator="and">
${key} = ${map[key]}
</foreach>