steam流对list集合分组

List<Student> list = this.list(queryWrapper); 
Map<Integer,List<Student>>map=list.stream().collect(
        Collectors.groupingBy(Student::getId));

猜你喜欢

转载自blog.csdn.net/qq_49641620/article/details/133354201