摘要: 阅读全文
posted @ 2022-07-16 17:52 村上春树的叶子 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 防火墙相关 firewall-cmd --state # 查看防火墙状态 firewall-cmd --zone=public --add-port=3306/tcp --permanent # 添加端口 firewall-cmd --list-port # 查看端口列表 firewall-cmd 阅读全文
posted @ 2022-07-16 17:18 村上春树的叶子 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 修改 Redis 的配置文件 /etc/redis.conf # bind 127.0.0.1 -::1 bind 0.0.0.0 # 绑定 ip,0.0.0.0 表示不绑定 protected-mode yes # 开启保护模式 requirepass 123456 # 设置密码 连接即可 # h 阅读全文
posted @ 2022-07-16 16:15 村上春树的叶子 阅读(20) 评论(0) 推荐(0) 编辑
摘要: CommandLineRunner 接口中的 run() @FunctionalInterface public interface CommandLineRunner { void run(String... args) throws Exception; } 使用时我们需要实现接口并重写 run 阅读全文
posted @ 2022-07-16 15:10 村上春树的叶子 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 将IDEA关闭,然后在项目文件中删掉 .idea 文件,重新打开 IDEA 编译即可。 阅读全文
posted @ 2022-07-16 15:00 村上春树的叶子 阅读(256) 评论(0) 推荐(0) 编辑
摘要: .gitignore的具体作用以及配置规则请自行百度,大概就是配置项目上传git仓库需要忽视的文件。 在上传项目是发现带上了.idea,于是打开.gitignore发现以及配置了忽视.idea,只是没有生效。虽然没太搞懂,不过搜查的解决办法都是这样解释的: .gitignore的忽略规则: 只能忽略 阅读全文
posted @ 2022-07-16 09:15 村上春树的叶子 阅读(4365) 评论(0) 推荐(0) 编辑