2024年6月28日

K8S service配置文件注意点

摘要: kind: Service apiVersion: v1 metadata: name: redis-exporter-svc namespace: redis-exporter labels: app: redis-exporter spec: ports: - name: http protoc 阅读全文

posted @ 2024-06-28 11:14 MaXianZhe 阅读(3) 评论(0) 推荐(0) 编辑

2024年6月7日

使用jasypt 和 k8s 避免项目中写数据库连接密码

摘要: 0 引入jasypt <dependency> <groupId>com.github.ulisesbocchio</groupId> <artifactId>jasypt-spring-boot-starter</artifactId> <version>3.0.4</version> </dep 阅读全文

posted @ 2024-06-07 18:18 MaXianZhe 阅读(1) 评论(0) 推荐(0) 编辑

2024年4月10日

docker-改镜像的配置文件

摘要: 1 进入docker的操作系统 docker exec -it 279b4d4ec245 /bin/bash 2 拷贝出来 docker cp 279b4d4ec245:/app/config.py ~ 3 用vim编辑 4 再拷贝回去 docker cp /home/maxz39/config.p 阅读全文

posted @ 2024-04-10 17:03 MaXianZhe 阅读(14) 评论(0) 推荐(0) 编辑

2023年6月21日

spring解决循环依赖-不错的回答

摘要: 面试官:”Spring是如何解决的循环依赖?“ 答:Spring通过三级缓存解决了循环依赖,其中一级缓存为单例池(singletonObjects),二级缓存为早期曝光对象earlySingletonObjects,三级缓存为早期曝光对象工厂(singletonFactories)。当A、B两个类发 阅读全文

posted @ 2023-06-21 09:56 MaXianZhe 阅读(26) 评论(0) 推荐(0) 编辑

2023年1月30日

理解DirectByteBuffer

摘要: 在下图中的第四步,内核会调用 iov_iter_copy_from_user_atomic 函数将用户空间缓冲区 DirectByteBuffer 中的待写入数据拷贝到 page cache 中。 但是内核又不能直接进行拷贝,因为此时从 page cache 中取出的缓存页 page 是物理地址,而 阅读全文

posted @ 2023-01-30 15:48 MaXianZhe 阅读(61) 评论(0) 推荐(0) 编辑

2023年1月29日

软考教材

摘要: 1 系统架构设计教程 - 希赛软考学院 2 系统架构设计师考试历年试题分析与解答 - 希赛软考学院 3 系统架构设计师考试全程指导 - 希赛软考学院 阅读全文

posted @ 2023-01-29 11:25 MaXianZhe 阅读(58) 评论(0) 推荐(0) 编辑

2022年12月5日

JAVA 解压缩代码写法

摘要: package com.chinaunicom.asset.common.utils.compress; import lombok.extern.slf4j.Slf4j; import org.apache.commons.compress.archivers.ArchiveEntry; impo 阅读全文

posted @ 2022-12-05 10:06 MaXianZhe 阅读(162) 评论(0) 推荐(0) 编辑

2022年11月18日

git统计代码提交

摘要: git log --format='%aN' | sort -u | while read name; do echo -en "$name\t"; git log --author="$name" --since=2022-11-08 --until=2022-11-18 --pretty=tfo 阅读全文

posted @ 2022-11-18 14:54 MaXianZhe 阅读(82) 评论(0) 推荐(0) 编辑

2022年11月4日

Stream通过某个字段过滤重复元素

摘要: List<Book> list = new ArrayList<>(); list.add(new Book("apple")); list.add(new Book("apple")); list.add(new Book("pear")); list.add(new Book("melon")) 阅读全文

posted @ 2022-11-04 15:10 MaXianZhe 阅读(1491) 评论(0) 推荐(0) 编辑

2022年11月1日

Kibana查询模板

摘要: GET _template 查询所有模板 GET _template/user_point 查询某一个模板(模板名为user_point ) 阅读全文

posted @ 2022-11-01 11:01 MaXianZhe 阅读(308) 评论(0) 推荐(0) 编辑

导航