悠然哈哈哈

导航

上一页 1 2 3 4 5 6 ··· 21 下一页

2021年8月25日 #

java 8 去重

摘要: // 取差集 List<SoDetail> chajiDetails = SoDetailList.stream() .filter(item -> !upSoDetailList.stream() .map(e -> e.getSkuCode()) .collect(Collectors.toLi 阅读全文

posted @ 2021-08-25 14:36 悠然886 阅读(828) 评论(0) 推荐(0) 编辑

jdk 8 list 转map Duplicate key 报错

摘要: 根据状态分组 //原来写法Map<String, SoDetail> upDetailMap = upSoDetailList.stream().collect(Collectors.toMap(SoDetail::getStatus, item -> item));//正确写法Map<String 阅读全文

posted @ 2021-08-25 09:07 悠然886 阅读(101) 评论(0) 推荐(0) 编辑

2021年8月6日 #

jdk 8 交集 差集

摘要: import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; public class Test { public static void main(String[] args) { Li 阅读全文

posted @ 2021-08-06 10:32 悠然886 阅读(216) 评论(0) 推荐(0) 编辑

2020年12月4日 #

Java 8 新特性对比

摘要: 前景 找到子集 or 兄弟 多规格商品 private List<Commodity> toCommodityRepresentation(List<Commodity> commodities){ List<CommodityStock> stocks=commodityStockMapper.f 阅读全文

posted @ 2020-12-04 08:50 悠然886 阅读(51) 评论(0) 推荐(0) 编辑

2020年11月26日 #

根据网络地址把图片保存到本地

摘要: package com.future.test; import com.baoqilai.scp.exception.TipsException; import com.baoqilai.scp.util.ExcelUtil; import org.springframework.core.io.F 阅读全文

posted @ 2020-11-26 14:36 悠然886 阅读(275) 评论(0) 推荐(0) 编辑

2020年10月21日 #

cron

摘要: # 每天早上7点到19点 每小时执行一次 0 0 7-19 * * ? 每天下午14点执行 0 0 14 * * ? 每个月1号0:10执行一次 0 10 0 1 * ? 阅读全文

posted @ 2020-10-21 15:51 悠然886 阅读(91) 评论(0) 推荐(0) 编辑

2020年9月18日 #

定时任务

摘要: //@Scheduled(cron = "${quartz.syncMsgShopJob.cron}") //意思就是在容器启动后,延迟10秒后再执行一次定时器,上一次执行完毕时间点之后15秒再执行。 @Scheduled(initialDelay = 10000,fixedRate = 15000 阅读全文

posted @ 2020-09-18 09:21 悠然886 阅读(105) 评论(0) 推荐(0) 编辑

spring boot redis CacheManager

摘要: // 1.0 @Value("${erp.cache.expireation:32400}") // in seconds 9小时private long cacheExpiration;@Value("#{${erp.cache.expires:{'activity:goods':600,'ord 阅读全文

posted @ 2020-09-18 09:18 悠然886 阅读(1473) 评论(0) 推荐(0) 编辑

2020年8月29日 #

非正常关闭vim编辑器后提示错误的解决方法

摘要: 使用vim,错误出现原因一般为以下两种情况: (1) 当你用多个程序编辑同一个文件时。 (2) 非常规退出时。 会提示以下信息: E325: ATTENTION Found a swap file by the name".old.txt.swp" owned by: root dated: Tue 阅读全文

posted @ 2020-08-29 11:10 悠然886 阅读(756) 评论(0) 推荐(0) 编辑

2020年8月27日 #

python pandas学习记录 二

摘要: api_access_20200821.log 3.16.25.4 - - [21/Aug/2020:00:00:02 +0800] "GET /erp/scp/connect/health HTTP/1.1" 200 54 0.060 "-" "-" 1.4.134.24 - - [21/Aug/ 阅读全文

posted @ 2020-08-27 14:13 悠然886 阅读(111) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 21 下一页