2023年3月27日
摘要:
excel计算日期天数和表格冻结首行 1.在单元格E35中输入公式DATEDIF(A35、B35、"MD")MD表起始日期、结束日期天数差。"Y" 时间段中的整年数。"M" 时间段中的整月数。"D" 时间段中的天数。"MD" 起始日期与结束日期的同月间隔天数,忽略日期中的月份和年份。"YD" 起始日
阅读全文
posted @ 2023-03-27 22:21
oktokeep
阅读(498)
推荐(0)
2023年3月16日
摘要:
泛型对象的应用:常规业务逻辑模板化,使用通用的父类来定义字段,具体字段由实现类来赋予数据 //DEMO-1 public interface CommonTemplateService<T,F> { public T buildCallbackParam(String orderNo); publi
阅读全文
posted @ 2023-03-16 17:00
oktokeep
阅读(63)
推荐(0)
摘要:
idea如何快速找到项目中待处理的TODO注释 idea菜单栏 View -> Tool Windows,可以打开TODO窗口
阅读全文
posted @ 2023-03-16 16:55
oktokeep
阅读(1214)
推荐(0)
摘要:
生成纳秒级别的订单号 package com.example.core.mydemo.orderno; import java.util.Random; public class Test{ /** * 生成纳秒级别的订单号 * * @return */ public static String g
阅读全文
posted @ 2023-03-16 16:55
oktokeep
阅读(47)
推荐(0)
2023年3月15日
摘要:
Thread.sleep 延时查询或延时查询前更新es缓存数据 MQ消息的顺序性,或发送MQ的发送端未严格事务处理,可能存在数据未落库的情况,而导致接收端处理MQ消息的时候,查询为空。 //demo1 订单 Order Order = OrderMapper.getOrder(orderNo); i
阅读全文
posted @ 2023-03-15 17:30
oktokeep
阅读(76)
推荐(0)
摘要:
https请求,Java代码忽略https证书:解决No subject alternative names present问题 package com.test.utils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; impo
阅读全文
posted @ 2023-03-15 15:33
oktokeep
阅读(1165)
推荐(0)
2023年3月14日
摘要:
java8 Optional使用 stream filter多级过滤 package com.example.core.mydemo.java8; public class MyModel { private String couponCode; private Integer orderType;
阅读全文
posted @ 2023-03-14 15:49
oktokeep
阅读(515)
推荐(0)
2023年3月13日
摘要:
//需求1:当天的日期且时间在9~24点之间的开始时间 LocalDateTime nowTime= LocalDateTime.now(); int year = nowTime.getYear(); int month = nowTime.getMonthValue(); int day = n
阅读全文
posted @ 2023-03-13 15:58
oktokeep
阅读(712)
推荐(1)
2023年2月27日
摘要:
微信退费报错:No appropriate protocol (protocol is disabled or cipher suites are inappropr) javax.net.ssl.SSLHandshakeException: No appropriate protocol (pro
阅读全文
posted @ 2023-02-27 10:11
oktokeep
阅读(3200)
推荐(0)
2023年2月20日
摘要:
http://coolaf.com/在线访问及格式化json工具谷歌浏览器json插件不是很好实现。安装,替代方案
阅读全文
posted @ 2023-02-20 09:56
oktokeep
阅读(581)
推荐(0)