liveBook · Manning

@SpringBootApplication

@SpringBootApplication is a Spring Boot annotation that combines application configuration, auto-configuration, and component scanning.

How 2 Manning books explain it

Spring in Action, Sixth Edition

@SpringBootApplication is a Spring Boot annotation that combines configuration, automatic configuration, and component scanning.

How it is used
Bootstraps a Spring Boot application from a designated configuration and main class.
How deep it goes
Explains the annotation’s three composed annotations and stops short of detailing automatic-configuration internals.
Examples
Uses TacoCloudApplication with a main method that calls SpringApplication.run.
What you can do after
Build a Spring Boot bootstrap class that discovers components and starts the application through an executable JAR.

Read how Spring in Action, Sixth Edition explains @SpringBootApplication →

Testing Spring Boot Applications

@SpringBootApplication is a Spring Boot annotation that identifies an application entry point and enables component scanning and auto-configuration.

How it is used
Identifies the application entry point and bootstraps an application context for Spring Boot components.
How deep it goes
Explains classpath discovery and bean registration, then stops short of detailing annotation implementation internals.
Examples
Uses a Widget REST application whose discovered external validator must be replaced with a stub.
What you can do after
Operate/configure test applications by recognizing when default component discovery must be replaced with selective configuration.

Read how Testing Spring Boot Applications explains @SpringBootApplication →

Also covered in

Related concepts

Questions about @SpringBootApplication

What is @SpringBootApplication?

@SpringBootApplication is a Spring Boot annotation that combines application configuration, auto-configuration, and component scanning.

Which Manning books explain @SpringBootApplication?

Spring in Action, Sixth Edition and Testing Spring Boot Applications.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.