mybatis获取map中的key和value
作者:互联网
低版本mybatis
<foreach collection="mapInfo.entrySet()" item="item" index="index" separator=",">
${item.key} = VALUES ( #{item.value} )
</foreach>
高版本
<foreach collection="eventExtdInfo.entrySet()" item="item" index="key" separator=",">
${key} = #{item}
</foreach>
标签:map,低版本,value,item,key,mybatis 来源: https://www.cnblogs.com/tudou1179006580/p/14875079.html