摘要: package com.suning.cpm.utils; import lombok.extern.slf4j.Slf4j; import net.sf.cglib.beans.BeanCopier; import org.apache.commons.collections.Collection 阅读全文
posted @ 2021-05-11 11:49 王岳阳 阅读(94) 评论(0) 推荐(0) 编辑
摘要: public class EasyExcelWriterFactory { private int sheetNo = 0; private ExcelWriter excelWriter = null; public EasyExcelWriterFactory(OutputStream outp 阅读全文
posted @ 2021-04-30 17:36 王岳阳 阅读(287) 评论(0) 推荐(0) 编辑
摘要: // 利用stream流中的TreeSet去重 List<ResourceTaskWhiteListVo> distinctWhiteList = whiteListVoList.stream() .collect(Collectors.collectingAndThen(Collectors.to 阅读全文
posted @ 2021-04-30 17:28 王岳阳 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Java解析json报文 json报文如下: java解析json代码: 阅读全文
posted @ 2019-11-18 11:11 王岳阳 阅读(1954) 评论(0) 推荐(0) 编辑
摘要: 1、字符串比较,常量放前面 if(status.equals(SUCCESS)){ } 2、初始化默认值 1 User user = new User(); 2 String name = StringUtils.EMPTY; 3、返回空集合 public List getUserList(){ L 阅读全文
posted @ 2019-11-18 11:08 王岳阳 阅读(265) 评论(0) 推荐(0) 编辑
摘要: List集合类型 Map集合类型: 阅读全文
posted @ 2019-11-18 11:07 王岳阳 阅读(315) 评论(0) 推荐(0) 编辑