会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
我是深水的猫
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
9
下一页
2023年6月16日
工具类
摘要: package com.itonglian.common.core.utils; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import co
阅读全文
posted @ 2023-06-16 10:10 我是深水的猫
阅读(24)
评论(0)
推荐(0)
2023年3月1日
kingbase数据库跨库,创建外部链接
摘要: --第一步:创建外部链接 create extension dblink ; --第二步:定义外部链接 select dblink_connect ('base_dblink','hostaddr=101.42.119.228 port=54321 dbname=cap_cloud_standard
阅读全文
posted @ 2023-03-01 16:02 我是深水的猫
阅读(555)
评论(0)
推荐(0)
10位时间戳转换
摘要: // 获取当天零点和23点时间戳 2021-07-08 // 获取当前时间戳 —1625714358823 // System.out.println(LocalDateTime.now().toInstant(ZoneOffset.of("+8")).toEpochMilli()); // 获取当
阅读全文
posted @ 2023-03-01 16:01 我是深水的猫
阅读(316)
评论(0)
推荐(0)
2023年2月27日
stream流分页方式
摘要: dataList.stream().sorted(Comparator.comparing()).skip(pageNum * pageSize).limit(pageSize).collect(Collectors.toList());
阅读全文
posted @ 2023-02-27 11:02 我是深水的猫
阅读(45)
评论(0)
推荐(0)
2023年2月22日
字符串转换时间戳,时间戳转换字符串!
摘要: #字符串转换时间戳 public static void main(String[] args) { // 字符串转换时间戳 SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM"); Date date = new Date(); try { da
阅读全文
posted @ 2023-02-22 15:22 我是深水的猫
阅读(60)
评论(0)
推荐(0)
获取本月第一天,获取本月最大的一天
摘要: SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); Calendar calendar = new GregorianCalendar(); calendar.setTime(date); //获得本月第一天 calendar.add
阅读全文
posted @ 2023-02-22 14:24 我是深水的猫
阅读(100)
评论(0)
推荐(0)
2022年11月11日
java计算接口调用时长
摘要: 方法一: LocalDateTime beginTime = LocalDateTime.now(); Long opetime = Duration.between(between,LocalDateTime.now()).toMillis(); 方法二: Long beginTime = new
阅读全文
posted @ 2022-11-11 09:39 我是深水的猫
阅读(616)
评论(0)
推荐(0)
2022年11月2日
java获取当月日期和当月周末
摘要: 根据年月,获取当月所有日期 public static void main(String[] args) { System.err.println(getMonthDate("2022-07")); } public static List getMonthDate(String timeStamp
阅读全文
posted @ 2022-11-02 11:11 我是深水的猫
阅读(521)
评论(0)
推荐(0)
2022年10月20日
xml转义字符
摘要: < < 小于号 > > 大于号 & & 和 ' ’ 单引号 " " 双引号
阅读全文
posted @ 2022-10-20 17:55 我是深水的猫
阅读(20)
评论(0)
推荐(0)
2022年10月8日
正则判断
摘要: // 正则判断,只允许输入数字和小数点(输入其他的会被替换为"")onkeyup="this.value=this.value.replace(/[^\d.]/g,'')" /** * 正则校验 * @param value * @returns {Boolean} */ function comp
阅读全文
posted @ 2022-10-08 18:09 我是深水的猫
阅读(41)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
9
下一页
公告