2024年4月15日
摘要: 把IP变为static BOOTPROTO="static"IPADDR="192.168.217.136" 最后,重启网络 systemctl restart network [root@centos01 conf]# cat /etc/sysconfig/network-scripts/ifcf 阅读全文
posted @ 2024-04-15 20:06 wuyicode 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 一、开始安装 # 新建挂载目录mkdir -p /opt/docker/mysql/data mkdir -p /opt/docker/mysql/confvim /opt/docker/mysql/conf/my.cnf [root@centos01 mysql]# cd conf/[root@c 阅读全文
posted @ 2024-04-15 20:02 wuyicode 阅读(10) 评论(0) 推荐(0) 编辑
  2023年11月22日
摘要: 参考 https://blog.csdn.net/wcj_java/article/details/128583045?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~defaul 阅读全文
posted @ 2023-11-22 16:53 wuyicode 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 参考 https://blog.csdn.net/feiying0canglang/article/details/127156520import org.springframework.context.SmartLifecycle; import org.springframework.stere 阅读全文
posted @ 2023-11-22 10:36 wuyicode 阅读(17) 评论(0) 推荐(0) 编辑
  2023年11月17日
摘要: 提出现象 做数据库更新A redis缓存刷新A 做据库更新B redis缓存更新B 如果正常执行1,2,3,4步骤,一切正常。但是在高并发的情况下, 执行步骤是 1,3,4,2,导致数据库和缓存不一致。 提出解决方法,做延时双删。 // 操作数据库的方法 @PostMapping("/employe 阅读全文
posted @ 2023-11-17 14:26 wuyicode 阅读(62) 评论(0) 推荐(0) 编辑
  2023年11月15日
摘要: 缓存穿透 1、缓存穿透是指查询一个缓存中和数据库中都不存在的数据,导致每次查询这条数据都会透过缓存,直接查库,最后返回空。 解决缓存穿透的方法一般有两种,第一种是缓存空对象,第二种是使用布隆过滤器。 缓存击穿 2、缓存击穿是指当缓存中某个热点数据过期了,在该热点数据重新载入缓存之前,有大量的查询请求 阅读全文
posted @ 2023-11-15 17:57 wuyicode 阅读(1) 评论(0) 推荐(0) 编辑
  2023年11月14日
摘要: dao接口除了extends JpaRepository外,还要 extends JpaSpecificationExecutor <dependency> <groupId>com.github.wenhao</groupId> <artifactId>jpa-spec</artifactId> 阅读全文
posted @ 2023-11-14 09:38 wuyicode 阅读(7) 评论(0) 推荐(0) 编辑
  2023年5月24日
摘要: 一、虚拟机centos7启动图形界面 安装虚拟机centos7后,没选图像界面,打开后是命令行模式。(首先换个国内的yum源) # 开始安装yum groupinstall "Development Tools" "Graphical Administration Tools" "KDE Plasm 阅读全文
posted @ 2023-05-24 14:09 wuyicode 阅读(200) 评论(0) 推荐(0) 编辑
  2023年1月31日
摘要: 一、查看eclipse的版本 在菜单help下, about eclipse, 确定eclipse的版本是4.5.0 二、去找sts下载地址 选择 sts-3.7.0 sts-3.8.3的下载地址:http://download.springsource.com/release/TOOLS/upda 阅读全文
posted @ 2023-01-31 13:42 wuyicode 阅读(593) 评论(0) 推荐(0) 编辑
  2023年1月13日
摘要: 我参考了 https://blog.csdn.net/u010148813/article/details/126152734 1、我用的虚拟机(宿主机)是Ubuntu root@jin-virtual-machine:/etc/docker# lsb_release -a No LSB modul 阅读全文
posted @ 2023-01-13 11:37 wuyicode 阅读(960) 评论(0) 推荐(0) 编辑