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 · Fresherspring-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 · Intermediatespring-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 · AdvancedSwap 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 · ExpertInternal 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:
{/* 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:
<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.
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@Validon 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.