Skip to main content
PreparationZone Logo
PrepZone

Starters and the BOM

Curated dependency bundles and how the Spring Boot BOM keeps versions aligned.

Pass checkpoint below

Why this matters

  • Starters are how Boot keeps BookStore dependencies aligned — one starter, zero version numbers.
  • The BOM (Bill of Materials) pins compatible versions across the entire Spring ecosystem.
  • Choosing the wrong starter (web vs webflux) shapes your entire application architecture.

What a starter is

L1 · Fresher

spring-boot-starter-web is one Maven dependency that pulls MVC, Jackson, Tomcat, and validation with versions tested together — no manual version alignment.

BOM version alignment

L2 · Intermediate

spring-boot-starter-parent imports the BOM so you omit versions on transitive libraries. Upgrading Boot upgrades Hibernate, Jackson, and Netty in sync.

Excluding transitive deps

L3 · Advanced

Swap Tomcat for Undertow or exclude default logging by excluding spring-boot-starter-logging and adding Log4j2 starter — document why in BookStore's POM comments.

Custom starters

L4 · Expert

Internal teams publish bookstore-starter with auto-config + dependencies. Follow Boot's starter naming (*-spring-boot-starter) and register auto-config in AutoConfiguration.imports.

How starters work

A starter POM contains only dependencies — no application code:

Java
{/* spring-boot-starter-web internally depends on: */}
{/* spring-boot-starter, spring-boot-starter-json, */}
{/* spring-boot-starter-tomcat, spring-web, spring-webmvc */}

Your BookStore pom.xml declares intent:

Java
<dependencies>
  <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
  </dependency>
  <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-data-jpa</artifactId>
  </dependency>
  <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-validation</artifactId>
  </dependency>
</dependencies>

No version tags — the parent BOM supplies them.

spring-boot-starter-web
spring-boot-starterCore Boot + logging
spring-webmvcControllers and REST
tomcat-embed-coreEmbedded server
jackson-databindJSON serialisation
spring-boot-starter-web pulls in Tomcat, Jackson, Spring MVC and more with tested versions.

Starters BookStore uses

  • spring-boot-starter-web — Tomcat, Spring MVC, Jackson JSON.
  • spring-boot-starter-data-jpa — Hibernate, Spring Data JPA, JDBC, connection pool.
  • spring-boot-starter-validation — Hibernate Validator for @Valid on DTOs.
  • spring-boot-starter-security — Spring Security filter chain.
  • spring-boot-starter-test — JUnit 5, Mockito, AssertJ, MockMvc.

The rest of this guide is part of Pro

Free covers every fresher guide in full. Pro unlocks Senior, Staff and Architect guides across every track.

Still to come · 6 sections

  • The Spring Boot BOM
  • Starter naming convention
  • Inspecting transitive dependencies
  • Test starter scope
  • Optional: spring-boot-starter-actuator
  • Version alignment in multi-module builds

Test yourself

Answer these before moving on — recall is what makes it stick.