intermediateSpring Boot Internals292 of 469

What does @SpringBootApplication do, and which annotations does it combine?

Tests whether you can name the three it bundles -- @Configuration (marks it as a bean-definition source), @EnableAutoConfiguration (triggers condition-based auto-config), and @ComponentScan (scans the package and below) -- rather than treating it as one opaque magic annotation.

Ready to master this question?

Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.

Sign in to generate a response

Next Step

← Back to all Spring Boot & Microservices questions