Introduction
As per spring-boot documentation, auto-configuration is implemented with standard @Configuration
classes. Additional @Conditional
annotations are used to constrain when the auto-configuration should apply. Usually, auto-configuration classes use @ConditionalOnClass
and @ConditionalOnMissingBean
annotations. This ensures that auto-configuration applies only when relevant classes are found and when you have not declared your own @Configuration
.