Spring Framework vs Spring Boot — What's the Difference?
Fast recall
Quick revision
Core answer
ApplicationContext, the same BeanPostProcessors, the same proxies — Boot just stops you from writing the configuration that wires it together.Whether the candidate understands that Spring Boot builds on top of Spring Framework rather than replacing it
Saying 'Spring Boot is a different framework' or treating them as competitors rather than layers in the same stack
Explain that understanding raw Spring is still essential for debugging auto-configuration issues, and mention the `--debug` flag for the conditions evaluation report
Interview-ready guide
Interview answer
Spring Boot is not a different framework — it is Spring Framework with decisions already made for you. The same ApplicationContext, the same IoC container, the same AOP proxies. What Spring Boot adds is conventions, auto-configuration, embedded servers, and starter POMs that wire everything together automatically.
What Spring Boot adds
- Auto-configuration: reads
@ConditionalOnClass,@ConditionalOnMissingBeanconditions at startup and registers beans only when the right dependencies are on the classpath and you have not already defined your own - Embedded server: Tomcat, Jetty, or Netty ships inside the JAR — no deployment to an external container required
- Starter POMs:
spring-boot-starter-webpulls in exactly the right set of dependencies at compatible versions
What stays the same
- The IoC container is identical —
ApplicationContext,BeanPostProcessor,@Autowired,@Transactionalall work exactly as in raw Spring - Debugging an auto-configuration issue requires understanding raw Spring: which
BeanPostProcessorruns, what condition failed, why two beans of the same type conflict
When to use raw Spring
- Embedding Spring into a non-Boot environment (legacy app servers, custom tooling)
- Writing a Spring Boot starter or auto-configuration itself
@SpringBootApplication is three annotations composed: @Configuration (this class defines beans), @EnableAutoConfiguration (activate auto-config), @ComponentScan (scan this package). Understanding the composition means you can decompose it when you only need part of it.
Spring Framework vs Spring Boot — What's the Difference
Direct Answer
Spring Boot is not a replacement for Spring Framework — it's an opinionated layer on top that eliminates boilerplate configuration. Spring provides the ecosystem (IoC, AOP, MVC, Data, Security), while Spring Boot provides auto-configuration, embedded servers, starter dependencies, and production-ready defaults so you can go from zero to running application in minutes instead of hours. Every Spring Boot app is still a Spring app — the same ApplicationContext, the same BeanPostProcessors, the same proxies — Boot just stops you from writing the configuration that wires it together.
Common Mistakes & Pitfalls
Saying 'Spring Boot is a different framework' or treating them as competitors rather than layers in the same stack
Check your understanding
Answer these without looking back at the article.
- How does Spring Boot auto-configuration work internally?
- What is the purpose of starter dependencies in Spring Boot?
- How do you override Spring Boot's default auto-configuration?
- What changed when migrating from Spring Boot 2.x to 3.x?
Related interview prep categories
1Looking for a structured roadmap?
Every module on this page is also part of the full Java backend interview track.