The spring-cloud-starter-* dependencies are Spring Cloud's convenience artifacts. Each one pulls in the libraries and auto-configuration for a single microservice capability, such as service discovery, centralized configuration, an API gateway, declarative HTTP clients, client-side load balancing or circuit breaking. You add the starter for the feature you need, and the Spring Cloud BOM keeps all versions compatible.
They follow the same idea as Spring Boot starters, but the version you use must match your Spring Boot version.
Spring Cloud is released as a release train named by calendar version (for example 2023.0.x, 2024.0.x, 2025.0.x). Each train supports specific Spring Boot versions, so you import the spring-cloud-dependencies BOM and then declare starters without versions.
Check the compatibility table on the Spring Cloud project page before choosing a train. A mismatch between Boot and Spring Cloud is the most common cause of startup errors.
| Starter | Purpose |
|---|---|
spring-cloud-starter-netflix-eureka-client | Register with and discover services from a Eureka server |
spring-cloud-starter-netflix-eureka-server | Run a Eureka service registry |
spring-cloud-starter-config | Client for Spring Cloud Config Server |
spring-cloud-config-server | Serve configuration from Git or other backends |
spring-cloud-starter-gateway (variants in newer trains) | API gateway built on Spring Cloud Gateway |
spring-cloud-starter-openfeign | Declarative HTTP clients with @FeignClient |
spring-cloud-starter-loadbalancer | Client-side load balancing |
spring-cloud-starter-circuitbreaker-resilience4j | Circuit breaker, retry and rate limiting |
spring-cloud-starter-consul-discovery | Discovery with HashiCorp Consul |
spring-cloud-starter-kubernetes-client | Discovery and config using Kubernetes |
Newer release trains split the gateway into separate servlet (MVC) and reactive (WebFlux) artifacts. Check the Spring Cloud Gateway reference for the exact artifact name for your train.
Adding a starter does three things. It brings in the implementation libraries, it registers auto-configuration that creates the needed beans, and it exposes properties for tuning. For example, with the OpenFeign starter you only declare an interface:
Enable it with @EnableFeignClients on a configuration class. Because the load balancer starter is on the classpath, the name inventory-service is resolved through the discovery client to one of the available instances.
Older tutorials use Netflix OSS projects that are no longer part of Spring Cloud. Use the replacements:
| Old component | Status | Replacement |
|---|---|---|
| Ribbon | Removed | Spring Cloud LoadBalancer |
| Hystrix | Removed | Resilience4j through the circuit breaker starter |
| Zuul 1 | Removed | Spring Cloud Gateway |
spring-cloud-starter-feign | Renamed | spring-cloud-starter-openfeign |
| Archaius, Turbine | Removed | Micrometer metrics and standard observability tools |
Eureka server and client remain available through the spring-cloud-starter-netflix-eureka-* starters.
Older projects needed bootstrap.yml to reach a config server, which required spring-cloud-starter-bootstrap. Current applications use the standard spring.config.import property instead:
Use optional: so the service still starts when the config server is unreachable during development.
No. Add only the ones for features you use. Each microservice normally needs a small subset.
Yes. Configuration, circuit breaking and load balancing are useful in any distributed setup, but the overhead is only worth it when you have several services.
Use the compatibility matrix in the Spring Cloud documentation. Each release train targets specific Boot lines.
Not for discovery or configuration, since Kubernetes provides Services, ConfigMaps and Secrets. Spring Cloud Kubernetes can bridge the two models.
spring-cloud-starter-* dependencies are focused entry points to Spring Cloud features. Import the BOM that matches your Spring Boot version, add one starter per capability, and avoid the retired Netflix components such as Ribbon, Hystrix and Zuul in favour of LoadBalancer, Resilience4j and Spring Cloud Gateway.