Skip to content

Commit 912eb53

Browse files
committed
Clarify configuration class behavior based on bean conditions
1 parent b522199 commit 912eb53

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6409,8 +6409,9 @@ on auto-configuration classes (since these are guaranteed to load after any user
64096409
beans definitions have been added).
64106410

64116411
NOTE: `@ConditionalOnBean` and `@ConditionalOnMissingBean` do not prevent `@Configuration`
6412-
classes from being created. Using these conditions at the class level is equivalent to
6413-
marking each contained `@Bean` method with the annotation.
6412+
classes from being created. The only difference between using these conditions at the class level
6413+
and marking each contained `@Bean` method with the annotation is that the former prevents
6414+
registration of the `@Configuration` class as a bean if the condition does not match.
64146415

64156416

64166417

0 commit comments

Comments
 (0)