Starters and the Embedded Server

Spring Boot starters and the embedded server: one dependency instead of a dozen, and a web server inside your own jar.

  • 6 cards
  • 4 questions
  • About 6 min
  • Intermediate to Advanced
Share

Two things that make a Boot project quick to set up: starters, which replace a list of version-matched dependencies with one line, and the embedded server, which ships inside your application so nothing has to be installed before it can answer a request. A Spring MVC project used to list a dozen dependencies whose versions all had to agree. It covers what a starter solves, what spring-boot-starter-web brings in, running with an embedded server, and swapping Tomcat for Jetty. It leaves out writing your own starter and deploying a WAR file to an external server.

Contents

6 cardsnot started