Java8之list<entity>获取实体的某一字段
示例
List<String> titles = titleList.stream().map(e -> e.get(ConstantUtil.TITLE)).collect(Collectors.toList());
优化:
List<String> fieldList = mountTableVoList.stream().map(ResMountTable::getFieldName).collect(Collectors.toList());