What is Spring Boot Starter
· 2 min read
Introduction
Spring Boot starters are predefined templates or dependencies that simplify the process of setting up a Spring Boot application. They eliminate the need to manually define numerous dependencies, ensuring compatibility and reducing configuration effort.
Here’s a list of commonly used Spring Boot starters and their purposes:
Core Starters
-
spring-boot-starter
- Base starter for any Spring Boot application.
- Includes essential dependencies like Spring Core, Logging, etc.
-
spring-boot-starter-test
- Starter for testing Spring Boot applications.
- Includes JUnit, Mockito, Spring Test, and AssertJ.
Web Development
-
spring-boot-starter-web
- For building RESTful web applications.
- Includes Spring MVC, Jackson (for JSON processing), and embedded Tomcat.
-
spring-boot-starter-webflux
- For reactive web applications using Project Reactor and WebFlux.
- Includes Netty or Tomcat for reactive web servers.
Data Access
-
spring-boot-starter-data-jpa
- For JPA-based repositories and Hibernate ORM.
- Includes Spring Data JPA and an H2 database.
-
spring-boot-starter-data-mongodb
- For MongoDB support.
- Includes Spring Data MongoDB.
-
spring-boot-starter-data-redis
- For Redis data access.
- Includes Spring Data Redis and Lettuce.
-
spring-boot-starter-jdbc
- For traditional JDBC-based database access.
- Includes Spring JDBC and DataSource support.