摘要: 一、使用selectKey标签 <insert id="addLoginLog" parameterType="map" > <selectKey keyProperty="id" resultType="int" order="BEFORE"> select nvl(max(id),0)+1 fr 阅读全文
posted @ 2019-11-25 20:42 uzxin 阅读(2944) 评论(0) 推荐(0) 编辑
摘要: fastjson在将Map<Integer, String>转换成JSON字符串时,出现中文乱码问题。 先记下这个坑,改天在看看是怎么导致的,暂时通过避免使用Integer作为键(使用String)避免中文乱码问题。 阅读全文
posted @ 2019-11-25 11:04 uzxin 阅读(786) 评论(0) 推荐(0) 编辑