随笔分类 -  JAVA

工具类,表达式
摘要:voList.stream().forEach(mergeCellVo->{ Integer cellIndex = mergeCellVo.getCellIndex(); //注意这里mergeCellVo是一个dto 遍历volist时cellJson引用该dto JSONObject cell 阅读全文
posted @ 2022-06-08 10:26 悄悄地超越 阅读(1161) 评论(0) 推荐(0)
摘要:/** * base64字符串转换成图片 * imgStr base64字符串 * path 生成图片路径 * photoName 图片名称 */ public static void createImage(String imgStr, String path,String photoName) 阅读全文
posted @ 2022-03-31 09:11 悄悄地超越 阅读(1378) 评论(0) 推荐(0)
摘要:Integer firstKey = map.keySet().iterator().next(); //获取第一个key /** * flag = 1 正序 * flag = 0 倒序 * @param map * @param flag * @return */ public static <K 阅读全文
posted @ 2021-12-24 18:09 悄悄地超越 阅读(45) 评论(0) 推荐(0)
摘要:List<MatchItem> matches = getList(itemCode); //根据内容去重itemList = itemList.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(()-> ne 阅读全文
posted @ 2021-12-23 11:15 悄悄地超越 阅读(41) 评论(0) 推荐(0)
摘要:ExecutorService executorService = new ThreadPoolExecutor(10, 10, 60L, TimeUnit.SECONDS, new ArrayBlockingQueue(10)); //推荐使用方法 手动创建线程, ExecutorService 阅读全文
posted @ 2021-12-21 09:42 悄悄地超越 阅读(42) 评论(0) 推荐(0)
摘要:import lombok.extern.slf4j.Slf4j;import org.apache.commons.lang.StringUtils;import org.aspectj.lang.JoinPoint;import org.aspectj.lang.ProceedingJoinPo 阅读全文
posted @ 2021-12-21 09:38 悄悄地超越 阅读(41) 评论(0) 推荐(0)