摘要: 收集其中两个字段 public Map<Long, String> getIdNameMap(List<Account> accounts) { return accounts.stream().collect(Collectors.toMap(Account::getId, Account::ge 阅读全文
posted @ 2023-05-04 20:30 白玉神驹 阅读(135) 评论(0) 推荐(0)