Spring AOP使用记录
摘要:通知 @Before:前置通知 @After:后置通知,无论是否发生异常都会执行 @AfterReturning:后置通知,正常返回时执行 @AfterThrowing:后置通知,异常返回时执行 @Aroud:环绕通知 各种通知使用例子 // 定义切点 @Pointcut("execution(*
阅读全文
posted @
2023-06-30 23:55
wastonl
阅读(43)
推荐(0) 编辑
redis cluster集群搭建
摘要:redis 6.2 使用docker搭建redis cluster集群(3主3从) 所有的操作都在根目录~/Developer/docker-compose/redis-cluster-6.2执行 创建配置文件 为了方便,写了个shell脚本,懒人必备 createConfig.sh for por
阅读全文
posted @
2023-06-29 19:24
wastonl
阅读(1170)
推荐(0) 编辑
xxl-job基本使用
摘要:### xxl-job-admin(调度中心)搭建 #### docker arm64架构镜像构建 由于官方没有构建arm64架构的docker镜像,只好自己构建了,下面是详细步骤。 1. 下载源码进行构建,[下载地址](https://github.com/xuxueli/xxl-job/rele
阅读全文
posted @
2023-06-23 17:48
wastonl
阅读(464)
推荐(0) 编辑
SpringBoot环境扩展机制
摘要:### 前言 Spring Boot在启动时,会先创建`Environment`实例,然后再创建`ApplicationContext`上下文。在创建`Environment`时,提供了扩展机制给用户对`Environment`实例进行修改,如Spring Boot默认使用的application.
阅读全文
posted @
2023-06-12 19:57
wastonl
阅读(76)
推荐(0) 编辑