Card 06/ 06

RecapDifficulty: Advanced1 min

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.

What the topic established, and which card it was on
The ideaWhere
A starter holds no code, only a version-matched list of dependencies from Boot's BOMSpring Boot Starters: One Dependency Instead of a Dozen
spring-boot-starter-web brings Spring MVC, Jackson and an embedded TomcatStarters Example: What spring-boot-starter-web Brings In
The server ships inside the jar, so java -jar is enoughEmbedded Servers: A Web Server Inside Your Own Jar
Swapping servers means excluding Tomcat as well as adding JettySwapping 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.