单独获取List对象某个属性操作 List<String> collect = users.stream().map(e -> e.getUserName()).collect(Collectors.toList());