01 2021 档案

摘要:1 import org.springframework.context.annotation.Bean; 2 import org.springframework.context.annotation.Configuration; 3 import org.springframework.web. 阅读全文
posted @ 2021-01-27 14:01 宁任翃 阅读(92) 评论(0) 推荐(0)
摘要:Integer: List<Integer> values = ...; Integer sum = values.stream().reduce(0, Integer::sum); BigDecimal: BigDecimal millHours = list.stream().filter(wo 阅读全文
posted @ 2021-01-25 16:43 宁任翃 阅读(1295) 评论(0) 推荐(0)
摘要:1 public class FatherToChild { 2 3 public static <T> QuotesMergePlusPriceDto fatherToChild(T father, T child) throws Exception { 4 if (child.getClass( 阅读全文
posted @ 2021-01-25 16:29 宁任翃 阅读(1689) 评论(0) 推荐(0)
摘要:EasyExcel是一个基于Java的简单、省内存的读写Excel的开源项目。在尽可能节约内存的情况下支持读写百M的Excel。以下是在使用 EasyExcel 的一些小结,参考内容以官方说明文档为主,总结了使用过程中一些经验和遇到的问题,相较于官方文档并不全面,谨作为记录,具体使用请参照官方使用说 阅读全文
posted @ 2021-01-25 16:24 宁任翃 阅读(957) 评论(0) 推荐(0)
摘要:用source.compareTo(BigDecimal.ZERO)==0,可以比较是否等于0,返回true则等于0,返回false,则不等于0 参考内容:https://blog.csdn.net/jixinhuluwa/article/details/72626598 阅读全文
posted @ 2021-01-25 15:14 宁任翃 阅读(2875) 评论(0) 推荐(0)
摘要:在数据库连接的URL中加上 allowPublicKeyRetrieval=true&useSSL=false 阅读全文
posted @ 2021-01-12 13:59 宁任翃 阅读(83) 评论(0) 推荐(0)