Auto-configuration, DI, REST, data, security, testing and observability for Spring Boot 3 and 4.
Preview — first 3 of 141 cards
@SpringBootApplication
Meta-annotation combining @Configuration, @EnableAutoConfiguration and @ComponentScan. It marks the main class and triggers auto-configuration plus component scanning from that package downwards.
@SpringBootApplication
public class App {
public static void main(String[] args) {
SpringApplication.run(App.class, args);
}
}
Auto-configuration
Spring Boot adds beans based on the classpath and properties, backing off when you define your own (@ConditionalOnMissingBean). Candidates live in META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports (Boot 3+; spring.factories in 2.x). Boot 4 splits the classes into per-technology modules (spring-boot-webmvc, spring-boot-jpa, spring-boot-jackson, ...) that starters assemble, so an app only gets auto-config for what it depends on.
# condition evaluation report: which auto-configs matched and why
java -jar app.jar --debug
Starters
Dependency aggregates (spring-boot-starter-web, -data-jpa, -security) that pull compatible library versions via the spring-boot-dependencies BOM. Use the BOM and omit versions; in Boot 4 a starter is mostly a thin wrapper over the modular auto-configuration jars it needs.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
138 more cards in this sheet
Unlock the Backend, Databases & AI bundle — ₹399
One-time payment. Unlocks this sheet and 14 other sheets in the bundle, plus a typeset PDF of each.
Unlock the bundle
See all bundles
Or get all 76 sheets for ₹999 — one payment, every future sheet included.