Spring Boot Auto-Configuration
Question Variations
- "How does Spring Boot decide to configure a bean?"
- "How do you override an auto-configured component?"
- "What does a starter dependency provide?"
Why This Is Asked
Interviewers use auto-configuration to assess whether you understand Spring Boot defaults, conditions, and safe customization.
Key Concepts
- Auto-configuration creates beans conditionally from the classpath, properties, and existing beans.
- Starters provide coherent dependency sets.
- Application beans can back off or override defaults deliberately.
- The condition evaluation report helps diagnose configuration.
Question Variations
- “How does Spring Boot decide to configure a bean?”
- “How do you override an auto-configured component?”
- “What does a starter dependency provide?”