Tag: Auto-Configuration
4 lessons about Auto-Configuration · from 1 modules · learn them in order
01@SpringBootApplication: One Annotation, Three MeaningsOne annotation, three jobs: @SpringBootConfiguration, @EnableAutoConfiguration and @ComponentScan. Unpack each layer, plus scan boundaries, exclusions and where to put the main class.Intermediate52′02Auto-Configuration Internals: From spring.factories to AutoConfiguration.importsWhy does adding a starter hand you a DataSource and a transaction manager? Unpack the loading pipeline of AutoConfigurationImportSelector, the ordering of @AutoConfiguration and the condition toolbox.Advanced50′03Conditional Wiring in Full: Ten Questions About @ConditionalThe real brain behind auto-configuration is conditional wiring. From the @Conditional meta-annotation to the whole OnClass/OnMissingBean/OnProperty family, with evaluation order and debugging.Intermediate44′04Build Your Own Starter: From Zero to Auto-LoadedHow many modules and annotations does a real starter need? Build an SMS starter end to end: auto-configuration, conditions, configuration properties, the imports file and verification.Advanced54′