Spring Boot

The combined annotations, auto-configuration loading, conditional wiring and custom starters — how Boot just works.

6 tutorials
01Your First Spring Boot App: Hello World in Three MinutesFrom start.spring.io to your first browser refresh: how the project is built, what every line of the main class means, where embedded Tomcat comes from and why web.xml is gone.Beginner47′02@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′03Auto-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′04Conditional 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′05Build 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′06Configuration in Full: Properties, YAML, Binding and ProfilesConfig file precedence, loose binding and validation in @ConfigurationProperties, profile switching, encryption and externalization — every configuration question answered.Intermediate44′