会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Arborblog
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
11
12
13
14
15
16
17
18
19
···
25
下一页
2022年7月7日
over(partition by
摘要: pos_date是2022-07-01格式 substr装换为20220701可以进行数字排序时间 over(partition by replace(substr(pos_date,1,10),'-','') order by replace(substr(pos_date,1,10),'-','
阅读全文
posted @ 2022-07-07 11:48 Arborblog
阅读(67)
评论(0)
推荐(0)
2022年7月5日
mysql查重
摘要: mysql重复数据 先进行判重字段分组,然后count(1)统计重复数据条数,having筛选count大于2条的表示重复数据
阅读全文
posted @ 2022-07-05 16:17 Arborblog
阅读(363)
评论(0)
推荐(0)
2022年7月4日
时间工具类
摘要: import java.sql.Timestamp; import java.time.Instant; import java.time.LocalDateTime; import java.time.ZoneId; import java.time.ZonedDateTime; import j
阅读全文
posted @ 2022-07-04 19:02 Arborblog
阅读(22)
评论(0)
推荐(0)
Java8新时间API
摘要: import org.junit.Test; import java.time.*; import java.time.format.DateTimeFormatter; import java.time.temporal.TemporalAdjuster; import java.time.tem
阅读全文
posted @ 2022-07-04 17:53 Arborblog
阅读(32)
评论(0)
推荐(0)
java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing
摘要: 今天在写代码的时候想把老系统里面加上单元测试,所以用最近做的springmvc上的一个项目中的junit扒一个下来:junit-4.12.jar 但是很奇怪在原来系统中好好能运行的,放到现在的项目中就老是报错:java.lang.NoClassDefFoundError: org/hamcrest/
阅读全文
posted @ 2022-07-04 17:03 Arborblog
阅读(78)
评论(0)
推荐(0)
2022年7月1日
JAVA软引用
摘要: Jvm -Xmx20M 表示虚拟机内存20M 软引用是SoftReference sr = new SoftReference(new Byte[1024102410]);这是一个10M内存的对象,如果内存会溢出就会将软引用对象剔除 sr是指针是放在栈内存里面,是一个指针,比较小
阅读全文
posted @ 2022-07-01 17:36 Arborblog
阅读(85)
评论(0)
推荐(0)
Linux常用命令
摘要: 关机/重启/注销 | 常用命令 | 作用 | | | | | shutdown -h now | 即刻关机 | | shutdown -h 10 | 10分钟后关机 | | shutdown -h 11:00 | 11:00关机 | | shutdown -h +10 | 预定时间关机(10分钟后)
阅读全文
posted @ 2022-07-01 13:12 Arborblog
阅读(109)
评论(0)
推荐(0)
2022年6月30日
POI的Excel模板
摘要: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sc
阅读全文
posted @ 2022-06-30 17:34 Arborblog
阅读(243)
评论(0)
推荐(0)
Java操作Excle
摘要: Poi和Excle Excle阿里巴巴 https://www.yuque.com/easyexcel/doc/easyexcel https://easyexcel.opensource.alibaba.com/docs/current/quickstart/read#%E6%9C%80%E7%A
阅读全文
posted @ 2022-06-30 13:31 Arborblog
阅读(31)
评论(0)
推荐(0)
乐观锁CAS的aba问题
摘要: 解决方案: 判断交换,就是交换,添加一个版本号 如果在判断完成我在进行改的过程又被打断了,怎么办? 硬件本身就支持cas,并不一定本身就是原子性,java的natave ,c++里面实行,lock cmpxchg 是锁, 1.关中断 2.缓存锁,存在对象大于缓存 3,锁总线,北桥电平拉高, 在jav
阅读全文
posted @ 2022-06-30 11:27 Arborblog
阅读(65)
评论(0)
推荐(0)
上一页
1
···
11
12
13
14
15
16
17
18
19
···
25
下一页
公告