上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要: 在idea中使用maven项目时,每次更新或重新载入maven项目后,项目或模块依赖的JDK都会重新变成JDK1.5,就算手动设置maven项目或者模块为JDK1.8,刷新后还是会变为JDK1.5。具体表现为:编译项目的时候会出现警告:"Warning:java: 源值1.5已过时, 将在未来所有发 阅读全文
posted @ 2022-08-22 18:06 小琪子 阅读(486) 评论(0) 推荐(0)
摘要: 创建索引 ../bin/kafka-topics.sh --bootstrap-server 192.168.126.11:9092 --create --replication-factor 2 --partitions 3 --topic topicDemo 启动生产者 ./kafka-cons 阅读全文
posted @ 2022-08-17 23:33 小琪子 阅读(283) 评论(0) 推荐(0)
摘要: 假设有三台服务器: 192.168.126.11、192.168.126.12、192.168.126.13 在 192.168.126.11 执行 (1)ssh-keygen 然后四个回车 (2)ssh-copy-id 192.168.126.12 (3)ssh-copy-id 192.168.1 阅读全文
posted @ 2022-08-16 23:30 小琪子 阅读(60) 评论(0) 推荐(0)
摘要: systemctl 新建脚本,例如,/tmp/mytest.sh,设置权限chmod +x /tmp/mytest.sh 进入目录/usr/lib/systemd/system,新建服务,例如mytest.service,编辑为如下形式: highlighter- code-theme-dark i 阅读全文
posted @ 2022-08-07 01:15 小琪子 阅读(88) 评论(0) 推荐(0)
摘要: 虽然官方不建议,但是有的时候还是有用 参考地址: https://www.cnblogs.com/architectforest/p/12467474.html 给文件添加可执行属性 1 chmod +x /etc/rc.d/rc.local 配置rc.local的服务 1 vi /usr/lib/ 阅读全文
posted @ 2022-08-01 15:37 小琪子 阅读(86) 评论(0) 推荐(0)
摘要: 1、开放端口 : firewall-cmd --zone=public --add-port=10911/tcp --permanent 2、重新加载:firewall-cmd --reload 3、查看:firewall-cmd --zone=public --list-ports 阅读全文
posted @ 2022-07-15 21:24 小琪子 阅读(322) 评论(0) 推荐(0)
摘要: 采用切面编程,在切面中新增数据库记录, 在其他地方无法查询到新增的记录, 切面中使用事务也不行,后面发现 被切面命中的方法也开启了事务,外层事务 没提交,导致新增数据无法查询, 后面修改了事务的传播属性, 切面事务不与外部事务关联,则可以提交。 阅读全文
posted @ 2022-04-20 08:45 小琪子 阅读(33) 评论(0) 推荐(0)
摘要: 1. 安装/升级Docker客户端 推荐安装1.10.0以上版本的Docker客户端,参考文档docker-ce 2. 配置镜像加速器 针对Docker客户端版本大于 1.10.0 的用户 您可以通过修改daemon配置文件/etc/docker/daemon.json来使用加速器 sudo mkd 阅读全文
posted @ 2022-02-19 23:51 小琪子 阅读(226) 评论(0) 推荐(0)
摘要: 首先cookie需要加上httponly、Secure、Samesit等属性 @GetMapping("/setCokie") public String setCokies(HttpServletResponse response){ Cookie cookie1 = new Cookie("us 阅读全文
posted @ 2021-08-18 10:18 小琪子 阅读(671) 评论(0) 推荐(0)
摘要: 后端添加如下代码 package com.example.demo; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowi 阅读全文
posted @ 2021-08-17 15:34 小琪子 阅读(1416) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 10 下一页