You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnBean.java
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2015 the original author or authors.
2
+
* Copyright 2012-2016 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -30,6 +30,11 @@
30
30
/**
31
31
* {@link Conditional} that only matches when the specified bean classes and/or names are
32
32
* already contained in the {@link BeanFactory}.
33
+
* <p>
34
+
* The condition can only match the bean definitions that have been processed by the
35
+
* application context so far and, as such, it is strongly recommended to use this
36
+
* condition on auto-configuration classes only. If a candidate bean may be created by
37
+
* another auto-configuration, make sure that the one using this condition runs after.
Copy file name to clipboardExpand all lines: spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnMissingBean.java
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2015 the original author or authors.
2
+
* Copyright 2012-2016 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -30,6 +30,11 @@
30
30
/**
31
31
* {@link Conditional} that only matches when the specified bean classes and/or names are
32
32
* not already contained in the {@link BeanFactory}.
33
+
* <p>
34
+
* The condition can only match the bean definitions that have been processed by the
35
+
* application context so far and, as such, it is strongly recommended to use this
36
+
* condition on auto-configuration classes only. If a candidate bean may be created by
37
+
* another auto-configuration, make sure that the one using this condition runs after.
Copy file name to clipboardExpand all lines: spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnSingleCandidate.java
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2012-2015 the original author or authors.
2
+
* Copyright 2012-2016 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -33,6 +33,11 @@
33
33
* The condition will also match if multiple matching bean instances are already contained
34
34
* in the {@link BeanFactory} but a primary candidate has been defined; essentially, the
35
35
* condition match if auto-wiring a bean with the defined type will succeed.
36
+
* <p>
37
+
* The condition can only match the bean definitions that have been processed by the
38
+
* application context so far and, as such, it is strongly recommended to use this
39
+
* condition on auto-configuration classes only. If a candidate bean may be created by
40
+
* another auto-configuration, make sure that the one using this condition runs after.
0 commit comments