diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnSingleCandidate.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnSingleCandidate.java index cb993223117b..5a69f78f006a 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnSingleCandidate.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnSingleCandidate.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2024 the original author or authors. + * Copyright 2012-2025 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -55,7 +55,7 @@ * The class type of bean that should be checked. The condition matches if a bean of * the class specified is contained in the {@link BeanFactory} and a primary candidate * exists in case of multiple instances. Beans that are not autowire candidates or - * that are not default candidates are ignored. + * that are not default candidates or that are fallback candidates are ignored. *
* This attribute may not be used in conjunction with * {@link #type()}, but it may be used instead of {@link #type()}. @@ -71,7 +71,8 @@ * The class type name of bean that should be checked. The condition matches if a bean * of the class specified is contained in the {@link BeanFactory} and a primary * candidate exists in case of multiple instances. Beans that are not autowire - * candidates or that are not default candidates are ignored. + * candidates or that are not default candidates or that are fallback candidates are + * ignored. *
* This attribute may not be used in conjunction with * {@link #value()}, but it may be used instead of {@link #value()}.