2023年3月16日
摘要:
idea如何快速找到项目中待处理的TODO注释 idea菜单栏 View -> Tool Windows,可以打开TODO窗口
阅读全文
posted @ 2023-03-16 16:55
oktokeep
阅读(1165)
推荐(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
阅读(36)
推荐(0)
2023年3月15日
摘要:
Thread.sleep 延时查询或延时查询前更新es缓存数据 MQ消息的顺序性,或发送MQ的发送端未严格事务处理,可能存在数据未落库的情况,而导致接收端处理MQ消息的时候,查询为空。 //demo1 订单 Order Order = OrderMapper.getOrder(orderNo); i
阅读全文
posted @ 2023-03-15 17:30
oktokeep
阅读(60)
推荐(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
阅读(1105)
推荐(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
阅读(496)
推荐(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
阅读(682)
推荐(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
阅读(3144)
推荐(0)
2023年2月20日
摘要:
http://coolaf.com/在线访问及格式化json工具谷歌浏览器json插件不是很好实现。安装,替代方案
阅读全文
posted @ 2023-02-20 09:56
oktokeep
阅读(541)
推荐(0)
2023年2月17日
摘要:
from util import str_util #业务逻辑:兼容不同的结构体:resCode转化数据 #检查字典中是否存在键 if 'resCode' not in resultJson if 'resCode' not in resultJson: if 'returnCode' in res
阅读全文
posted @ 2023-02-17 12:07
oktokeep
阅读(261)
推荐(0)
摘要:
车牌号隐藏中间位数及城市去掉末尾的字符处理 package com.example.core.mydemo; /** * 车牌号隐藏中间位数及城市去掉末尾的字符处理 *carPlateNum=牌A***89 *市:上海 */ public class StringTest { public stat
阅读全文
posted @ 2023-02-17 12:06
oktokeep
阅读(116)
推荐(0)