What Is Spring Boot? Spring Framework 7 With the Decisions Already Made
Plain Spring gives you the parts and leaves the wiring to you. Spring Boot is the same Spring Framework 7 with starters, auto-configuration and an embedded Tomcat on top, so it decides first and you change only what you disagree with.
What you will learn
- Place Spring Boot on top of Spring Framework 7 in one picture
- Explain 'opinionated' as defaults you can override in application.yml
- Follow what happens between SpringApplication.run and a page in the browser
- Name what changed in Spring Boot 4, including the webmvc starter rename
Before you start
- Your First Spring Boot 4 Project
Creating a first Spring Boot project takes a few clicks: pick a starter, press Run, and a page shows up in the browser. So what is this Spring Boot thing that made it so easy? The short answer: it is Spring Framework 7, with the decisions already made for you.
Plain Spring gives you the parts
Spring on its own gives you nice parts: the web part, the Tomcat server, a JSON library, a config class and a main method to start it all. But you connect them. You pick a version for every jar and hope they fit, write the configuration, start the server and set up the classpath. When we built the Mini Blog with plain Spring MVC, every one of those pieces was our job: BlogServer started Tomcat by hand and registered the DispatcherServlet itself. It worked, but that was a lot of setup before the first page appeared.
Where Boot sits
Opinions are just defaults
People call Spring Boot "opinionated". It just means Boot has already decided things: the web server is Tomcat, the port is 8080, JSON goes through Jackson 3, logs go through Logback, and you can package the app as a jar or a war. Don't like port 8080? Add one setting to application.yml:
server:
port: 9090
Boot uses your value, and everything else keeps its default. You never repeat the things you're happy with. Boot decides first, and you change only what you disagree with. You'll do exactly this many times in this course.
What happens when you press Run
- It starts in
main, with one line:SpringApplication.run(...). The log starts coming. - Boot looks at the jars on the classpath. Spring Web is there, Tomcat is there, Jackson is there, so it creates the objects the app needs, such as the
DispatcherServletand the JSON mapper. This is auto-configuration. It also picks upstatic/index.htmlas the welcome page. - Tomcat starts on port 8080 and the log says so.
- The app reports that it has started, a few seconds later, and the browser shows the page.
You wrote one line in main. Boot looked at the jars and did the rest. Compare that with the hand-written BlogServer from the plain Spring version.
What's new in Spring Boot 4
- It's built on Spring Framework 7. It still runs on Java 17 and is ready for Java 25.
- Boot itself is split into smaller modules, so a starter brings in only what it really needs.
- JSON goes through Jackson 3. Most of the time you won't notice.
- API versioning is built in, so one URL can serve two versions of an answer.
Coming from Boot 3? The web starter has a new name: spring-boot-starter-webmvc. Apart from that the big idea didn't change.
In short
| Piece | Job |
|---|---|
| Starters | pick the parts, with matching versions |
| Auto-configuration | wires them, based on the jars it finds |
application.yml | where you override a default |
| Run | a working app with the server inside, as a jar or a war |
StudyEasy AI Community
Learn AI engineering, share what you build, and connect with other learners.
Free resources: lesson files, notebooks and code
Ask questions and join engineering discussions
Meet real people learning and building with AI
Related course on Udemy
FULL STACK JAVA : JAVA + JSP + SPRING BOOT AI + REACT + VIBE
Java 25, JSP, Hibernate, Spring Boot 4, REST APIs, React and Spring AI.View on Udemy ↗: FULL STACK JAVA : JAVA + JSP + SPRING BOOT AI + REACT + VIBE (paid course, opens in a new tab)Related posts
Why Spring in 2026: What the Container Does and What Spring Framework 7 Changed
Spring in one line: a container that creates your classes and hands each one what it needs. Plus the Spring Framework 7 baseline (JDK 17 to 25, Jakarta EE 11, Tomcat 11, JUnit 6), what got better than Spring 6, and a two-line version check.
A Plain Spring Project, No Boot: Your First Bean With spring-context
One dependency, one recipe, one getBean: a Maven project with spring-context 7.0.9, a Blog record, an AppConfig with @Bean, and a main that asks the container for the Blog. Then delete @Bean and meet NoSuchBeanDefinitionException.
Inversion of Control and Dependency Injection in Spring: One Program, Built Three Ways
A PostService needs a PostRepository. Build it three ways: the service calls new itself (tight coupling), main hands it in through the constructor (DI by hand), and the Spring container does the wiring from a @Configuration recipe.
Spring Component Scanning: @Component and @ComponentScan Instead of @Bean Methods
Instead of one @Bean method per class, put @Component on EmailNotifier and PostService and @ComponentScan on an empty BlogConfig. Spring walks the package, finds the stickers and builds the beans; main doesn't change.
