java 将list里面根据实体类某个字段生成新的Map<字段,实体>
摘要:
List userList=new ArrayList();//把实体里面的Id单独抽取出来 Map userInfoMap= userList.stream().collect(Collectors.toMap(User::getId, Function.... 阅读全文
posted @ 2022-11-08 07:34
小目标青年
阅读(32)
评论(0)
推荐(0)
浙公网安备 33010602011771号