从对象list中获取对象属性list

List<B2bUserVO> userVOList = userCenterFacade.getAllUserListByParentId(clientContactsAddForm.getMainUserId());
            List<String> userIdList = userVOList.stream().map(e->e.getId()).collect(Collectors.toList());

  

原文地址:https://www.cnblogs.com/wanhua-wu/p/8888989.html