- 博客(5)
- 收藏
- 关注
原创 List分组统计
List<Student> studentVoList=XXX;//按照年级 统计人数年级人数Map<Long,Long> studenCount=studentVoList.stream().collect(Collectors.groupingBy(InnerSchoolStudentVo::getSchoolGradeId,Collectors.counting()));
2021-12-27 17:46:11
654
1
原创 nginx 页面刷新404 端口号变化
在使用nginx时 页面都能正常访问 但刷新之后就404 查找原因是端口号变化 之前是正确的刷新之后就变成了 我监听的80端口 。修改方法如下 if (!-e $request_filename) { rewrite ^/(.*) /index.html last; break; }...
2021-10-14 17:07:36
732
原创 List分组求和
//分组统计Map<String,BigDecimal> firmAndNum=new HashMap<>();Map<String,IntSummaryStatistics> masp=projectPostList.stream().filter(s->s.getPeopleCounting()!=null&& s.getPeopleCounting()!=0 &&s.getFirmName()!=null &&am.
2021-09-24 14:06:50
307
原创 两个List 比较不同
List<Long> resumeIds=new ArrayList();List<Long> resumePurId=new ArrayList();List<Long> notexists=resumeIds;notexists.removeAll(resumePurId);//resumePurId中不存在resumeIds中的元素notexists.removeAll(resumePurId);notexists 中的元素就是不同...
2021-09-24 12:03:52
292
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人