1What is Spring Boot, and how does it differ from the core Spring Framework?
Spring Boot is an extension of the core Spring Framework designed to radically simplify the bootstrap and development phase of standalone, production-grade Spring applications.
Key Differences:
- Configuration Overhead: Core Spring requires heavy XML or manual Java-based configuration configurations. Spring Boot relies on Auto-Configuration to set up beans based on classpath dependencies.
- Embedded Servers: Core Spring applications must be packaged as WAR files and deployed onto an external servlet container (like Tomcat or WildFly). Spring Boot includes an embedded web server (Tomcat, Jetty, or Undertow by default), allowing deployment as an executable JAR file.
- Dependency Management: Core Spring requires explicitly versioned dependencies which can cause version mismatch conflicts. Spring Boot provides Starter Dependencies (e.g., spring-boot-starter-web) to manage curated, compatible version matrices automatically.
