Stream通过List里对象中某个属性最小来取该最小对象 代码实现(Entity为实体) 代码实现(Entity为实体) List.stream().min(Comparator.comparing(Entity::getAge)).get();