Card 06/ 06
Recap: Starters and the Embedded Server
What a starter is, what the web starter brings, and how the server travels inside the jar.
Starters and the embedded server come down to the four ideas below, each listed with the card that covers it.
| The idea | Where |
|---|---|
| A starter holds no code, only a version-matched list of dependencies from Boot's BOM | Spring Boot Starters: One Dependency Instead of a Dozen |
spring-boot-starter-web brings Spring MVC, Jackson and an embedded Tomcat | Starters Example: What spring-boot-starter-web Brings In |
The server ships inside the jar, so java -jar is enough | Embedded Servers: A Web Server Inside Your Own Jar |
| Swapping servers means excluding Tomcat as well as adding Jetty | Swapping the Embedded Server From Tomcat to Jetty |
When a Boot application has a library you did not expect, or lacks one you did, mvn dependency:tree shows which starter brought it in.
← → move through sections and cards