![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
文章平均质量分 52
问遥寒
阿里程序员
展开
-
使用winsw将jar以服务的形式运行在windows
winsw是github上的一个开源项目,可将jar以服务的形式部署在windows系统下载地址:https://github.com/winsw/winsw/releases/tag/v2.11.01、下载exe包和xml文件2、将exe和xml与jar放到同一目录下并重命名3、修改xml内容<service> <!-- ID of the service. It should be unique across the Windows system-->原创 2021-10-24 11:18:30 · 388 阅读 · 1 评论 -
解决文件上传不成功报错org.springframework.web.multipart.MultipartException:Could not
文件上传到服务器出现 org.springframework.web.multipart.MultipartException: Could not parse multipart servlet request; nested exception is java.io.IOException: The temporary upload location [/tmp/tomcat.21706992...原创 2020-02-13 21:40:45 · 8804 阅读 · 8 评论 -
Java8利用stream将对象集合list中抽取属性集合转化为map或list
首先新建一个实体类Person@Datapublic class Person { /** 编码 */ private String code; /** 名字 */ private String name; public Person(String code, String name) { this.code = code; ...原创 2020-03-24 19:47:56 · 41085 阅读 · 5 评论 -
Java8利用stream对list集合中的bigdecimal进行分组求和,均值,最大值,最小值
新建接口ToBigDecimalFunction@FunctionalInterfacepublic interface ToBigDecimalFunction<T> { BigDecimal applyAsBigDecimal(T value);}新建工具类CollectorsUtilpublic class CollectorsUtil { stati...原创 2020-04-27 16:17:53 · 20769 阅读 · 5 评论 -
Java8利用stream的distinct()方法对list集合中的对象去重和抽取属性去重
首先新建一个实体类Person,因为要对该对象进行去重,所以需要重写equals和hashCode方法@Datapublic class Person { /** 编码 */ private String code; /** 名字 */ private String name; public Person(String code, String name) { this.code = code; this.name = name;原创 2020-07-01 18:01:00 · 5766 阅读 · 3 评论 -
Java8利用stream的fillter()方法按条件在list中抽取对象集合并排序或对象
首先新建一个实体类Person@Datapublic class Person { /** 编码 */ private String code; /** 名字 */ private String name; public Person(String code, String name) { this.code = code; this.name = name; }}实例化五个对象放入list集合中Person pe原创 2020-07-01 18:45:08 · 2175 阅读 · 1 评论