dingdangmaoup dingdangmaoup`s blog

利用观察者模式记录日志

1.定义事件类型 public class LogEvent { } 2.定义日志切面注解 import jakarta.interceptor.InterceptorBinding; import java.lang.annotation.Documented; import java.lan

DINGDANGMAOUP Published on 2024-06-24

Caffeine 缓存 详解

Caffeine 缓存 详解 Caffeine缓存是一个高性能、内存基础的缓存库,它是由Google Guava缓存库中的cache2k和ConcurrentLinkedHashMap项目的作者Ben Manes所创建的。Caffeine缓存具有以下特点: 高性能:Caffeine缓存是一个高性能缓

DINGDANGMAOUP Published on 2024-06-21

多个线程任务批量提交

import java.util.concurrent.*; ThreadPoolExecutor THREAD_POOL_EXECUTOR = new ThreadPoolExecutor( (int) Math.floor(4),

DINGDANGMAOUP Published on 2024-06-21