摘要: 1.根据useGeneratedKeys获取返回值,部分数据库不支持 修改mybatis xml <insert id="insertUser" useGeneratedKeys="true" keyProperty="id" parameterType="com.entity.user"> ins 阅读全文
posted @ 2019-11-20 17:53 陌笠人灬苼 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 本文是利用阿里巴巴封装的FastJSON来转换json字符串的。例子如下: package com.zkn.newlearn.json; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import 阅读全文
posted @ 2019-11-20 10:58 陌笠人灬苼 阅读(252) 评论(0) 推荐(0) 编辑