摘要: 前缀key设计,按照不同的业务区分了不同的业务场景的前缀Key public class RedisKeyConstants { public static final String REDIS_GAMEGROUP_NEW_KEY = "newgamegroup"; public static fi 阅读全文
posted @ 2025-10-10 16:39 秋水秋色 阅读(8) 评论(0) 推荐(0)
摘要: package xxx; import com.google.common.collect.Maps; import org.springframework.beans.BeansException; import org.springframework.beans.PropertyValues; 阅读全文
posted @ 2025-10-09 17:28 秋水秋色 阅读(3) 评论(0) 推荐(0)
摘要: export dir='optservergodfsdata' find "$dir" -mindepth 2 -type f -name 'meta.data' \ -exec sh -c 'for f; do bn=$(basename "$f" .data); cat "$f" >> "opt 阅读全文
posted @ 2025-07-23 10:24 秋水秋色 阅读(5) 评论(0) 推荐(0)
摘要: 1、 supplyAsync方法需要一个Supplier函数接口,通常用于执行异步计算 CompletableFuture<String> future = CompletableFuture.supplyAsync(() -> { dosomething("处理事务"); return "结果"; 阅读全文
posted @ 2024-09-26 11:10 秋水秋色 阅读(472) 评论(0) 推荐(0)
摘要: xxxList.stream().sorted(Comparator.comparing(Object::getXXX)).collect(Collectors.toList()); 阅读全文
posted @ 2024-09-11 14:20 秋水秋色 阅读(58) 评论(0) 推荐(0)
摘要: multipart/form-data Content Type,专门用于处理包含二进制数据(如图片、视频或文档)和常规文本数据的表单,通常用来上传文件。 要处理 multipart/form-data 请求,我们必须用 @MultipartConfig 或在 web.xml 中配置 Servlet 阅读全文
posted @ 2024-09-04 10:22 秋水秋色 阅读(297) 评论(0) 推荐(0)
摘要: public class CASCounter { private int i = 0; private static Unsafe unsafe; private static long offset; static { try { var unsafeField = Unsafe.class.g 阅读全文
posted @ 2024-09-02 11:31 秋水秋色 阅读(19) 评论(0) 推荐(0)
摘要: git reset --hard commit-id git push -f 阅读全文
posted @ 2024-08-27 16:28 秋水秋色 阅读(11) 评论(0) 推荐(0)
摘要: 领域 从事一种专门活动或事业的范围、部类和部门 领域事件 事件构建和发布、事件数据持久化、事件总线、消息中间件、事件接收和处理 事件构建和发布 基本属性{事件唯一标识、发生时间、时间类型、事件源}、业务属性{记录事件发生那一刻的业务数据,这些数据随事件传输到订阅方, 以开展下一步的业务操作} 二者属 阅读全文
posted @ 2024-08-23 14:14 秋水秋色 阅读(30) 评论(0) 推荐(0)
摘要: 项目管理计划(必须):包括项目的范围、进度、资源、质量、风险、沟通、采购等方面的计划和管理。 需求文档:包括用户需求、功能需求、非功能需求等方面的需求文档。 设计文档:包括功能结构图、数据库结构、部署结构图、API清单、界面原型等方面的设计文档。 项目代码库与编码:包括源代码、编译脚本、配置文件等存 阅读全文
posted @ 2024-08-23 14:13 秋水秋色 阅读(66) 评论(0) 推荐(0)