Interview questions
Question 59 of 254
FreeWhat is @SpringBootApplication, and what does it actually compose?
Spring Boot Fundamentals
@SpringBootApplication is a convenience meta-annotation combining three separate annotations: @SpringBootConfiguration (a specialization of @Configuration, marking the class as a configuration source), @EnableAutoConfiguration (triggers Spring Boot's classpath-based auto-configuration), and @ComponentScan (scans the current package and sub-packages for components) — placing it on the main class gives you all three behaviors in one annotation.
Beginner3 min

