MyBatis循环获取Map中的key和value的方法

有时候须要简单地把一个Map中全部的key和value获取出来,拼到sql语句中。MyBatis提供的一种方法是遍历Map中的entrySet,而后把key扔进index里面,value扔进item中。具体的一个使用的例子以下:html <insert id="operationName" parameterType="map"> INSERT INTO table_name(hot_word
相关文章
相关标签/搜索