09 2022 档案
摘要:1、使用stream api对list集合做总数累加计算: List<Integer> profitList = new ArrayList<Integer>(); //使用java8的新特性stream api 做list元素累加,算总和 int total = profitList.stream
阅读全文
摘要:1、先上项目配置好的swagger2的ui界面: 2、需要swagger2的这两个包: <!-- swagger2 包 --> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactI
阅读全文