如何在spring boot项目上实现什么是AOP
基本概念,AOP 的全称是Aspect Oriented Programming,看到这里大家可能会想到我们 OOP 面向对象编程,这两者有什么关系和区别呢?两者是不同的编程范式,OOP 是主要使用对象的模式来解决问题,在对象中会定义属性和方法。AOP 主要关注点在 crosscutting concerns。这样的好处就是可以是这些公共的...
dotnet core practices
设计模式
抽象模式
单例模式
global异常捕获
docker-compose启动dotcore-webapplication+nginx
event handler
filter
dotnet functional
jwt token
refeclt的应用
SOLID
如何使用coveragereport生成测试报告
如何使用Newtons...
GatlingRepoload test by Gatling in this repo, you will know how to use gatling to do load test
preparation
download gatling
unzip your gatling zip file
use the cmd/Users/zengqiangfang/Downloads...
Gatling 3 Fundamentals
基本步骤
创建http client,初始化url,请求头部格式等等
http.baseUrl
创建测试场景
scenario 定义测试场景
exec 声明测试的endpoint
http
get/post/put ….
check 检查response结果
eg: check(status.is(200)))
p...
Disk operation
df
展示磁盘的使用情况
du
当前目录下的每个文件的使用情况
file operationdefinition
什么是Linux的文件系统?
cat
cat
-n 对输出的内容加上行号
-b 对输出的内容(除空白行外)都加上行号
/dev/null > [file name] 清空当前file的内容
chgrp 改变文件或目录的所属群组
-v/-c 改变当前文件的群组
eg:如果想将当前目录下的README...
How to collect, manage and visualize our log data?author: zengqiang fanglog ELK EFK k8s
Background Duri...
Varnish using for new fresh
What is varnish
Varnish is a http cache tool for accelerating http request response.
The configuration language of varnish is named as VCL, which can handle the incomi...
how to use secret in k8s
encryption method
name
Description
Strength
Key Length
identity default
None
test
test
secretbox
XSalsa20 and Poly1305
Strong
32 byte
aesgcm
AES-GCM with random...
helm一种CI/CD工具
definition: helm可以被当做是k8s的包管理工具,利用helm可以部署自己的应用程序以及其他依赖服务应用,如redis,mysql等等。
如何在本地的k8s集群中使用helm部署服务
preparation
docker-desktop or minikube
brew install helm
using helm versio...