List对象 转换单个属性
List<String> ids = list.stream().map(User::getUserId).collect(Collectors.toList()); List<String> ids = 对象List.stream().map(对象::get属性).collect(Collectors.toList());