Video in progress
How is Spring Boot different from plain Spring?
Spring Boot is a layer on top of Spring: auto-configuration, ready-made starters, an embedded server, and running everything as a single jar.
📖 Answer
In plain Spring you configure a lot by hand: DataSource, transaction manager, Jackson, web server, logging... Boot does this itself based on the classpath.
The main differences:
- Auto-configuration — add
spring-boot-starter-data-jpaand a DataSource, EntityManager and transaction manager appear on their own. If you provide your own bean, Boot doesn't add its own. - Starters — one dependency brings in the needed libraries in compatible versions.
- Embedded server — Tomcat lives inside the application; no separate install needed.
- Fat jar — starts with
java -jar app.jar. - Actuator — ready-made endpoints for health, metrics and so on.
- Configuration —
application.yml, profiles and env variables all in one place.
Boot is not a separate framework. Inside it's the same Spring: DI, MVC, Data. Boot just puts them together quickly and consistently.
Sign up to mark studied questions and save your progress.