How Spring Boot Auto-Configuration Decides

How Spring Boot Auto-Configuration Decides A workflow diagram generated by Archify. 01 / Your application EX / Spring Boot 03 / Context Application · @SpringBootApplication · Your application Application @SpringBootApplication Your beans first · scanning, @Bean · Your application Your beans first scanning, @Bean Candidates · AutoConfiguration.imports · Spring Boot Candidates AutoConfiguration.imports Evaluate conditions · class, bean, property · Spring Boot Evaluate conditions class, bean, property Skipped · condition report · Spring Boot Skipped condition report Register defaults · @ConditionalOnMissingBean · Context Register defaults @ConditionalOnMissingBean Running app · your overrides win · Context Running app your overrides win then match no match

Opinionated defaults

  • • Configured only when you have not

Conditions

  • • Classpath, beans and properties decide

Debuggable

  • • --debug prints the condition report
© 2026 Samir Kumar Sahoo. All rights reserved.