同一块石头搬到了两次的List<Map> 转List<dto>的问题
不多比比
it is shame to talking about this
List<Map<String, Object>> maps = reader.readAll(); List<UploadData> collect = maps.stream().map(m -> new UploadData(m.get("name").toString(), m.get("card").toString(), m.get("phone").toString())).collect(Collectors.toList()); System.out.println(collect);
看看lambda 吧 please your majesty!!!!!!!!
新鲜刺激的东西永远都有,玩之前掂量掂量自己几斤几两