Card 06/ 06
Recap: What Spring Boot Adds
Boot's job, its main annotation, auto-configuration and the rule that your bean wins, with where each was.
What Spring Boot adds comes down to the four ideas below, each listed with the card that covers it.
| The idea | Where |
|---|---|
| Boot is Spring with the typical setup created for you from what is on the classpath | Spring Boot: What It Adds to Spring |
@SpringBootApplication combines configuration, auto-configuration and component scanning | @SpringBootApplication: The Three Annotations Inside It |
| Conditional annotations decide whether an auto-configured bean is created | Auto-Configuration Example: A DataSource You Never Defined |
| A bean you define yourself replaces Boot's, silently | Your Own Bean Replaces the Auto-Configured One |
When a Boot application does something you did not configure, the --debug conditions report shows which auto-configuration did it and why.
← → move through sections and cards