From 97cbed91a3820940df6dcd7c343b97a7c2864fb2 Mon Sep 17 00:00:00 2001 From: Junyan Li <70315042+4Nanai@users.noreply.github.com> Date: Wed, 30 Jul 2025 22:43:09 -0400 Subject: [PATCH] Update spring.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根据源码,这里是在check需要排除的类存在,但是不在候选配置中的情况。而不是原文描述的“检查排除的类是否存在于候选配置中,如果存在,则抛出异常“。 --- docs/src/sidebar/sanfene/spring.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/sidebar/sanfene/spring.md b/docs/src/sidebar/sanfene/spring.md index 93f78f63c..db4cc3801 100644 --- a/docs/src/sidebar/sanfene/spring.md +++ b/docs/src/sidebar/sanfene/spring.md @@ -3310,7 +3310,7 @@ protected AutoConfigurationEntry getAutoConfigurationEntry(AnnotationMetadata an // 根据注解属性解析出需要排除的自动配置类。 Set exclusions = getExclusions(annotationMetadata, attributes); - // 检查排除的类是否存在于候选配置中,如果存在,则抛出异常。 + // 检查排除的类是否出现在候选配置中,如果需要排除的类存在但没有出现在候选配置中,则抛出异常。 checkExcludedClasses(configurations, exclusions); // 从候选配置中移除排除的类。