摘要: 使用的是阿里的json com.alibaba.fastjson.JSONObject; Map<String,Object> map = new HashMap<String,Object>(); return JSONObject.toJSONString(map); 转义的时候,map中值是n 阅读全文
posted @ 2018-05-18 14:00 雪儿蛇王 阅读(4813) 评论(0) 推荐(0) 编辑
摘要: 当使用spring boot加mybatis时,设置Map返回,当值为空或是null时,返回的字段不会加载到map中 在application.properties中加入下面配置,将会解决这个问题。 #当查询数据为空时字段返回为null,不加这个查询数据为空时,字段将被隐藏 mybatis.conf 阅读全文
posted @ 2018-05-18 11:58 雪儿蛇王 阅读(506) 评论(0) 推荐(0) 编辑