From 6b976851655e726891b110b3f4e7836c179a8987 Mon Sep 17 00:00:00 2001 From: "weicw1996@qq.com" Date: Mon, 21 Sep 2026 10:44:30 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E7=BD=91=E5=85=B3?= =?UTF-8?q?=E7=BB=8F=20blade-common=20=E4=BC=A0=E9=80=92=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fd6563f 为 LenientDateParser 引入的 blade-starter-log(compile scope) 把 blade-core-tool 等整棵依赖树传递给所有依赖 common 的模块。网关 (WebFlux) 的 pom 排除了 spring-boot-starter-web(无 spring-webmvc), 而 blade-core-tool 的自动配置 BladeConverterConfiguration implements WebMvcConfigurer 且无 @ConditionalOnClass 守卫,Spring 解析该配置类时 抛 FileNotFoundException 导致网关启动即崩。 修复:starter-log 改为 provided —— 编译期 ServiceException 可见, 不再向下游传递。业务服务运行时的 ServiceException 由 blade-core-boot 传递提供,行为不变。 验证:网关以原 classpath 启动成功(Started GateWayApplication in 16.4s);blade-common 与全仓 BUILD SUCCESS。 --- blade-common/pom.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/blade-common/pom.xml b/blade-common/pom.xml index 0879b91..25f7365 100644 --- a/blade-common/pom.xml +++ b/blade-common/pom.xml @@ -25,6 +25,11 @@ org.springblade blade-starter-log + + provided org.springblade