From 004e55f198524dd422a433e2e761af228dce75d8 Mon Sep 17 00:00:00 2001 From: CangJieStore Date: Sat, 14 Nov 2026 17:16:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BE=9D=E8=B5=96=E5=BA=93?= =?UTF-8?q?=E7=89=88=E6=9C=AC=EF=BC=8Ccosid=E6=9A=82=E4=B8=8D=E6=9B=B4?= =?UTF-8?q?=E5=88=9B=E6=96=B0=EF=BC=8C=E5=A4=A7=E7=89=88=E6=9C=AC=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .workbuddy/memory/2026-11-14.md | 32 +++++++++++++++++++++++++ simple-starter-bom/pom.xml | 2 +- simple-starter-dependencies/pom.xml | 37 +++++++++++++++-------------- 3 files changed, 52 insertions(+), 19 deletions(-) create mode 100644 .workbuddy/memory/2026-11-14.md diff --git a/.workbuddy/memory/2026-11-14.md b/.workbuddy/memory/2026-11-14.md new file mode 100644 index 0000000..6489568 --- /dev/null +++ b/.workbuddy/memory/2026-11-14.md @@ -0,0 +1,32 @@ +# 2026-11-14 + +## simple-starter 依赖版本审计与低风险升级 + +- 审计基线:Spring Boot 4.1.2 / Spring Cloud 2025.1.4 / Java 21,全量 `mvn -DskipTests compile` 通过。 +- 项目已完成 SB4 适配改造(`mybatis-plus-spring-boot4-starter`、`sa-token-spring-boot4-starter`、`spring-boot-data-redis` 新模块、Jackson 3 `tools.jackson`),无需再动。 +- 结论性判断: + - **JetCache 维持 2.7.9**(官方专为「兼容 SB4 + jackson3」发布,2.8.0.RC 是彻底重写且不兼容 2.7)。 + - **Sentinel 维持 1.8.10**(2.0.0 仍是 alpha,官方 SB4 适配长期滞后)。 + - **OpenTelemetry 维持 1.62.0**(正是 SB4.1.2 BOM 管理的版本,显式声明与 BOM 重复,不应偏离)。 + - **CosId 维持 4.1.1**(5.0 完全重写零兼容,需 store 拆分 + 下游配置全改 + cosid-migration,项目用法极浅收益有限)。 + +## 本次已完成:低风险库小幅升级 + +在 `simple-starter-dependencies/pom.xml` 升级 9 个版本属性,全量 clean compile 通过(EXIT=0): + +| 依赖 | 前 | 后 | +|---|---|---| +| Hutool | 5.8.47 | 5.8.48 | +| Tink | 1.16.0 | 1.24.0 | +| Nimbus JOSE JWT | 10.9.1 | 10.10 | +| OkHttp | 5.1.0 | 5.5.1 | +| Okio | 3.16.0 | 3.18.2 | +| AWS SDK | 2.57.9 | 2.59.1 | +| AWS CRT | 0.48.4 | 0.50.0 | +| swagger-annotations | 2.2.52 | 2.2.55 | +| jetcd | 0.8.5 | 0.8.8 | + +## 分布式 ID 选型备忘(本次讨论结论) + +- 项目对 CosId 用法极浅:仅 `simple-starter-data-mp` 的 `MyBatisPlusCosIdIdentifierGenerator` 用 `SnowflakeId` 当主键,`@Qualifier("__share__SnowflakeId")`,无 @CosId 注解、无 store。 +- 若未来去 CosId,首选「MyBatis Plus 内置 DefaultIdentifierGenerator + Redisson 协调 workerId」(零新依赖,解决容器化 MAC/PID 相同导致的 workerId 冲突);次选美团 Leaf 号段;Redis INCR 作轻量兜底。 diff --git a/simple-starter-bom/pom.xml b/simple-starter-bom/pom.xml index e996cf5..42fb8b0 100644 --- a/simple-starter-bom/pom.xml +++ b/simple-starter-bom/pom.xml @@ -13,7 +13,7 @@ Simple Starter BOM - 2.6.2 + 2.6.3 4.1.0 diff --git a/simple-starter-dependencies/pom.xml b/simple-starter-dependencies/pom.xml index cb2448a..6043c57 100644 --- a/simple-starter-dependencies/pom.xml +++ b/simple-starter-dependencies/pom.xml @@ -14,35 +14,36 @@ - 2.6.2 + 2.6.3 - 4.1.0 - 2025.1.2 + 4.1.2 + 2025.1.4 - 4.7.0 + 4.8.0 2.7.9 + 3.3.1 - 1.45.0 + 1.46.0 1.16.7 - 3.5.17 - 4.5.0 + 3.5.18.1 + 4.6.0 3.9.1 - 3.2.0 + 4.1.1 1.2.0 3.3.5 - 2.47.6 - 0.48.4 + 2.59.1 + 0.50.0 - 1.4.0 + 2.0.0 1.6.2 1.5.6 @@ -63,23 +64,23 @@ 2.11.6 - 2.2.52 + 2.2.55 - 0.8.5 + 0.8.8 1.62.0 1.8.10 - 10.9.1 - 1.16.0 + 10.10 + 1.24.0 - 5.1.0 - 3.16.0 + 5.5.1 + 3.18.2 2.14.5 3.5.7 - 5.8.47 + 5.8.48 15.7