- 博客(4)
- 收藏
- 关注
原创 window10下WSL使用Ubuntu报错: System has not been booted with systemd as init system (PID 1). Can‘t operat
用window10下WSL使用Ubuntu来用Docker当我使用命令sudo systemctl start docker的时候报错:System has not been booted with systemd as init system (PID 1). Can’t operate.查了原因:如果是一般的Linux操作系统,可能是因为Linux中没有使用systemd,想用systemd命令来管理Linux上的服务,因此会报错,很可能是使用的是经典的SysV init(sysvinit)系统
2021-11-24 11:39:59
4864
原创 MySQL使用explain判断是否使用索引及类型
navicat可视化工具使用explain函数查看sql执行信息我们只需要注意一个最重要的type 的信息很明显的提现是否用到索引:type结果值从好到坏依次是:system > const > eq_ref > ref > fulltext > ref_or_null > index_merge > unique_subquery > index_subquery > range > index > ALLall:全表扫描ind
2021-06-24 14:34:44
1432
原创 SimpleDateFormat线程不安全及解决方案
包含线程不安全照成的多种异常情况。https://blog.csdn.net/weixin_55891090/article/details/114854647
2021-06-22 19:30:26
48
转载 MybatisPlus中 自己写的sql怎么使用Page分页
new 出一个Page作为参数传给 Mapper就是这么简单就可以实现自己的sql也可以分页了
2021-06-22 11:03:26
863
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人