06 2020 档案

摘要:由上图的JSON.toJSON替换成Gsons.toJson 原本以为JSON.toJSON是转换成String。实际上不是 JSON.toJSON (转换成JSONObject对象)和Gsons.toJson (转换成String) 由于该map不应该存string ,于是改造成Map docum 阅读全文
posted @ 2020-06-23 17:57 夏末、初秋 阅读(190) 评论(0) 推荐(0)
摘要:// 如标题,转换失败.map(obj -> (Long) obj) //修改如下 .map(obj -> { if (obj instanceof BigDecimal) { return ((BigDecimal) obj).longValue(); } return (Long) obj; } 阅读全文
posted @ 2020-06-17 09:43 夏末、初秋 阅读(708) 评论(0) 推荐(0)
摘要:public class test { public static void main(String []args){ String postResult ="{\"code\":200,\"message\":\"success\",\"data\":[{\"name\":\"n1\",\"res 阅读全文
posted @ 2020-06-01 21:31 夏末、初秋 阅读(683) 评论(0) 推荐(0)