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
The condition can only match the bean definitions that have been processed by the application context so far and, as such, it is strongly recommended to use this condition on auto-configuration classes only. If a candidate bean may be created by another auto-configuration, make sure that the one using this condition runs after.
Please remove this case from samples and articles.
The text was updated successfully, but these errors were encountered:
Article and Module Links
https://www.baeldung.com/spring-conditional-annotations#predefined-conditional-annotations
https://github.com/eugenp/tutorials/tree/master/spring-boot-modules/spring-boot-annotations-2
Describe the Issue
The article promotes the use of
@ConditionalOnBean
on actual components or bean declaration in user configuration.This is explicitly called out as an invalid case in the Spring Boot Javadoc:
Please remove this case from samples and articles.
The text was updated successfully, but these errors were encountered: