悠然哈哈哈

导航

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

2021年11月4日 #

Assert.isTrue 用法

摘要: String shippWay = "MM"; boolean expression = shippWay.equals(ShippingWayEnum.ZT.getCode()); System.out.println("Assert.isTrue报错"); shippWay = "ZT"; ex 阅读全文

posted @ 2021-11-04 12:16 悠然886 阅读(2851) 评论(0) 推荐(0) 编辑

2021年10月9日 #

分页

摘要: List<PushInfo> models = this.findByStatus(whCode, statusList,pushNum,2); if (models.isEmpty()) { return; } int pageSize = 500;// 条数 int listCount = mo 阅读全文

posted @ 2021-10-09 16:27 悠然886 阅读(22) 评论(0) 推荐(0) 编辑

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 阅读(842) 评论(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 阅读(107) 评论(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 阅读(219) 评论(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 阅读(53) 评论(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 阅读(279) 评论(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 阅读(1532) 评论(0) 推荐(0) 编辑

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