Skip to content

Commit 8d0cfdf

Browse files
committed
Merge branch '3.3.x'
Closes gh-42506
2 parents f5934f8 + 7b4cd03 commit 8d0cfdf

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnBean.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@
3535
* must be met for the condition to match, but they do not have to be met by the same
3636
* bean.
3737
* <p>
38-
* When placed on a {@code @Bean} method, the bean class defaults to the return type of
39-
* the factory method:
38+
* When placed on a {@link Bean @Bean} method and none of {@link #value}, {@link #type},
39+
* {@link #name}, or {@link #annotation} has been specified, the bean type to match
40+
* defaults to the return type of the {@code @Bean} method:
4041
*
4142
* <pre class="code">
4243
* &#064;Configuration

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnMissingBean.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@
3535
* must be met for the condition to match and the requirements do not have to be met by
3636
* the same bean.
3737
* <p>
38-
* When placed on a {@code @Bean} method, the bean class defaults to the return type of
39-
* the factory method:
38+
* When placed on a {@link Bean @Bean} method and none of {@link #value}, {@link #type},
39+
* {@link #name}, or {@link #annotation} has been specified, the bean type to match
40+
* defaults to the return type of the {@code @Bean} method:
4041
*
4142
* <pre class="code">
4243
* &#064;Configuration

0 commit comments

Comments
 (0)