I tried to recreate your pom.xml via Spring Initializr and the following pom.xml manages to start the SpringBootApplication successfully.
You can cross-check it with yours, just some quick points:
spring-boot-starteris not needed since you havespring-boot-starter-webspring-cloud-starter-bootstrapis not required (at least Spring Initializr didn't put it along withspring-cloud-starter-configI didn't include
spring-batch-testandspring-security-testsince it doesn't seem that you use the relevant starters.<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.5.4</version> <relativePath/> <!-- lookup parent from repository --> </parent> <groupId>com.example</groupId> <artifactId>demo</artifactId> <version>0.0.1-SNAPSHOT</version> <name>demo</name> <description>Demo project for Spring Boot</description> <properties> <java.version>11</java.version> <spring-cloud.version>2020.0.3</spring-cloud.version> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter</artifactId> </dependency> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-config</artifactId> </dependency> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-openfeign</artifactId> </dependency> <!-- runtime dependencies --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>true</optional> </dependency> <!-- test dependencies --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> </dependencies> <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-dependencies</artifactId> <version>${spring-cloud.version}</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build> </project>
Moreover it needed to add the following line in the appplication.properties file:
spring.config.import=optional:configserver:
Answer from pleft on Stack OverflowSpring
spring.io › projects › spring-cloud
Spring Cloud
Just like Spring Boot, many Spring Cloud projects include starters that you can add as dependencies to add various cloud native features to your project. In many cases, many features are enabled purely by adding the starter to your classpath.
Maven Repository
mvnrepository.com › artifact › org.springframework.cloud › spring-cloud-starter
Maven Repository: org.springframework.cloud » spring-cloud-starter
January 29, 2026 - Spring Cloud provides tools for developers to quickly build some of the common patterns in distributed systems (e.g.
Spring
docs.spring.io › spring-cloud-kubernetes › reference › getting-started.html
Starters :: Spring Cloud Kubernetes
Starters are convenient dependency descriptors you can include in your application. Include a starter to get the dependencies and Spring Boot auto-configuration for a feature set. Starters that begin with spring-cloud-starter-kubernetes-fabric8 provide implementations using the Fabric8 Kubernetes ...
Maven Repository
mvnrepository.com › artifact › org.springframework.cloud › spring-cloud-starter-config
Maven Repository: org.springframework.cloud » spring-cloud-starter-config
January 29, 2026 - Spring Cloud provides tools for developers to quickly build some of the common patterns in distributed systems (e.g.
Maven Central
central.sonatype.com › artifact › org.springframework.cloud › spring-cloud-starter › 3.0.3
org.springframework.cloud:spring-cloud-starter:3.0.3
pkg:maven/org.springframework.cloud/spring-cloud-starter@3.0.3
Spring Cloud
cloud.spring.io › spring-cloud-config › multi › multi__quick_start.html
1. Quick Start - Spring Cloud Project
To use these features in an application, you can build it as a Spring Boot application that depends on spring-cloud-config-client (for an example, see the test cases for the config-client or the sample application). The most convenient way to add the dependency is with a Spring Boot starter org.springframework.cloud:spring-cloud-starter-config.
GitHub
github.com › pivotal-cf › spring-cloud-services-starters
GitHub - pivotal-cf/spring-cloud-services-starters: Spring Cloud Starters for Spring Cloud Services on Pivotal Cloud Foundry
Spring Cloud Services Starters are a curated set of dependencies for use with Spring Cloud Services in a Pivotal Cloud Foundry environment.
Starred by 42 users
Forked by 23 users
Languages Java 97.5% | Shell 2.3% | Dockerfile 0.2% | Java 97.5% | Shell 2.3% | Dockerfile 0.2%
Spring
spring.io › projects › spring-cloud-gateway
Spring Cloud Gateway
To run your own Gateway Server WebMVC use the spring-cloud-starter-gateway-server-webmvc dependency.
Maven Central
central.sonatype.com › artifact › org.springframework.cloud › spring-cloud-starter-config
spring-cloud-starter-config - Maven Central
pkg:maven/org.springframework.cloud/spring-cloud-starter-config@Loading...
Awspring
docs.awspring.io › spring-cloud-aws › docs › current › reference › html › index.html
Spring Cloud AWS
Simply add a dependency on the spring-cloud-starter-aws-parameter-store-config starter module to activate the support.
Maven Central
central.sonatype.com › artifact › org.springframework.cloud › spring-cloud-starter-openfeign
spring-cloud-starter-openfeign - Maven Central - Sonatype
pkg:maven/org.springframework.cloud/spring-cloud-starter-openfeign@Loading...
Maven Central
central.sonatype.com › artifact › org.springframework.cloud › spring-cloud-starter
org.springframework.cloud:spring-cloud-starter - Maven Central
<?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-commons-parent</artifactId> <version>5.0.1</version> </parent> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter</artifactId> <version>5.0.1</version> <name>spring-cloud-starter</name> <description>Spring Cloud St
GitHub
github.com › spring-cloud › spring-cloud-config › blob › main › spring-cloud-starter-config › pom.xml
spring-cloud-config/spring-cloud-starter-config/pom.xml at main · spring-cloud/spring-cloud-config
External configuration (server and client) for Spring Cloud - spring-cloud-config/spring-cloud-starter-config/pom.xml at main · spring-cloud/spring-cloud-config
Author spring-cloud
Spring
spring.io › blog › 2023 › 05 › 25 › spring-cloud-2022-0-3-aka-kilburn-is-available
Spring Cloud 2022.0.3 (aka Kilburn) Is Available
May 25, 2023 - plugins { id 'java' id 'org.springframework.boot' version '3.1.0' id 'io.spring.dependency-management' version '1.1.0' } repositories { mavenCentral() } ext { set('springCloudVersion', "2022.0.3") } dependencies { implementation 'org.springframework.cloud:spring-cloud-starter-config' implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client' } dependencyManagement { imports { mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}" } }
Medium
medium.com › @AlexanderObregon › step-by-step-creating-your-first-spring-cloud-application-ef4dcfe277a4
Step-by-Step — Creating Your First Spring Cloud Application
April 29, 2024 - Learn how to build your first Spring Cloud application step-by-step. Set up Eureka Server, Config Server, and a microservice in this beginner's guide.