摘要: List<User> userlist = userService.findAll();Integer sum= userlist .stream().collect(Collectors.summingInt(User::getAge)); package com.example.list_tes 阅读全文