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-starter is not needed since you have spring-boot-starter-web

  • spring-cloud-starter-bootstrap is not required (at least Spring Initializr didn't put it along with spring-cloud-starter-config

  • I didn't include spring-batch-test and spring-security-test since 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 Overflow
🌐
Maven Repository
mvnrepository.com › artifact › org.springframework.cloud › spring-cloud-starter-config
Maven Repository: org.springframework.cloud » spring-cloud-starter-config
January 29, 2026 - aar android apache api arm assets ... clojure cloud config cran data database eclipse example extension framework github gradle groovy io ios javascript jvm kotlin library logging maven mobile module npm osgi persistence plugin resources rlang sdk server service spring sql starter testing tools ...
🌐
Spring Cloud
cloud.spring.io › spring-cloud-config
Spring Cloud Config
Page Redirection · If you are not redirected automatically, follow the link to latest snapshot documentation
Top answer
1 of 1
1

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-starter is not needed since you have spring-boot-starter-web

  • spring-cloud-starter-bootstrap is not required (at least Spring Initializr didn't put it along with spring-cloud-starter-config

  • I didn't include spring-batch-test and spring-security-test since 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:
🌐
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
🌐
Baeldung
baeldung.com › home › spring › spring security › quick intro to spring cloud configuration
Quick Intro to Spring Cloud Configuration | Baeldung
February 8, 2024 - First, we’ll create two new Maven projects. The server project is relying on the spring-cloud-config-server module, as well as the spring-boot-starter-security and spring-boot-starter-web starter bundles:
🌐
Spring
spring.io › projects › spring-cloud
Spring Cloud
In many cases, many features are enabled purely by adding the starter to your classpath. The starter names are documented within the individual projects. Below is an example of how you would add a Spring Cloud Config Client and a Spring Cloud Netflix Eureka client to your application.
🌐
Spring
spring.io › guides › gs › centralized-configuration
Getting Started | Centralized Configuration - Spring
Now that you have stood up a Config Server, you need to stand up a new Spring Boot application that uses the Config Server to load its own configuration and that refreshes its configuration to reflect changes to the Config Server on-demand, without restarting the JVM. To do so, add the org.springframework.cloud:spring-cloud-starter-config dependency, to connect to the Config Server.
Find elsewhere
🌐
Medium
medium.com › @boskyjoseph › spring-cloud-config-with-spring-boot-3-a94bb4a48fd
Spring Cloud Config with Spring Boot 3 | by Bosky | Medium
May 22, 2023 - In the config-repo we have configuration for two services service-a and service-b as shown in the below image ... http://localhost:8888/service-a/dev/qa : retrives the properties for service-a dev profile from branch qa ... <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-config</artifactId> </dependency>
🌐
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
dependencyManagement { imports { mavenBom "io.pivotal.spring.cloud:spring-cloud-services-dependencies:${springCloudServicesVersion}" } } dependencies { implementation("io.pivotal.spring.cloud:spring-cloud-services-starter-config-client") implementation("io.pivotal.spring.cloud:spring-cloud-services-starter-service-registry") }
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%
🌐
Gitbooks
bushkarl.gitbooks.io › spring-cloud › content › spring_cloud_config › quick_start.html
Quick Start | Spring Cloud - bush
To use these features in an application, just build it as a Spring Boot application that depends on spring-cloud-config-client (e.g. see the test cases for the config-client, or the sample app). The most convenient way to add the dependency is via a Spring Boot starter org.springframework.cloud:spring-cloud-starter-config.
🌐
Maven Central
central.sonatype.com › artifact › org.springframework.cloud › spring-cloud-starter-config › 4.2.1
org.springframework.cloud:spring-cloud-starter-config:4.2.1
<?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-config</artifactId> <version>4.2.1</version> </parent> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-config</artifactId> <version>4.2.1</version> <name>spring-cloud-starter-config</name> <description>Spring Cl
🌐
Baeldung
baeldung.com › home › spring › spring cloud › spring cloud – bootstrapping
Spring Cloud - Bootstrapping | Baeldung
January 8, 2024 - Search for “config client” and add that dependency. Search for “eureka discovery client“ and add that dependency. Then, generate that project. Alternatively, add these dependencies to a project: <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-config</artifactId> </dependency> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-bootstrap</artifactId> </dependency> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>
🌐
TutorialsPoint
tutorialspoint.com › spring_boot › spring_boot_cloud_configuration_server.htm
Spring Boot - Cloud Configuration Server
First, download the Spring Boot project from the Spring Initializer page and choose the Spring Cloud Config Server dependency.
🌐
Microsoft Learn
learn.microsoft.com › en-us › java › api › overview › azure › spring-cloud-starter-appconfiguration-config-readme
Spring Cloud for Azure starter App Configuration client library for Java | Microsoft Learn
This package helps Spring Application to load properties from Azure Configuration Store. Package (Maven) | Samples | Reference Documentation · Java Development Kit (JDK) with version 8 or above ... There are two libraries that can be used azure-spring-cloud-appconfiguration-config and azure-spring-cloud-appconfiguration-config-web.
🌐
resilience4j
resilience4j.readme.io › docs › getting-started-6
Getting Started
Add the Spring Cloud 2 Starter of Resilience4j to your compile dependency. The Spring Cloud 2 Starter allows you to use Spring Cloud Config as a central place to manage and refresh properties at runtime.
🌐
Maven Repository
mvnrepository.com › artifact › io.pivotal.spring.cloud › spring-cloud-services-starter-config-client › 3.2.0.RELEASE
Maven Repository: io.pivotal.spring.cloud » spring-cloud-services-starter-config-client » 3.2.0.RELEASE
aar android apache api application ... clojure cloud config cran data database eclipse example extension framework github gradle groovy ios javascript jenkins kotlin library maven mobile module npm osgi persistence plugin resources rlang sdk server service spring sql starter testing tools ...
🌐
Tech Learning Hub
tech-learning-hub.com › cheatsheets › springboot › springcloudconfig
Spring Cloud Config | Tech Learning Hub
April 29, 2025 - Add a dependency for group “org.springframework.cloud” and artifact “spring-cloud-starter-config”. You do not need to specify a version – this is already defined in the parent pom in the dependency management section.
🌐
Medium
medium.com › @AlexanderObregon › a-beginners-guide-to-centralized-configuration-with-spring-cloud-config-6dfb6c70b5ad
A Beginner’s Guide to Centralized Configuration with Spring Cloud Config
September 29, 2023 - Connecting a client application to the Spring Cloud Config Server is crucial to ensure that the application can access the centralized configuration and refresh its configuration without needing a restart. The following steps offer a clear, concise guide on how to establish this connection. Start by setting up a Spring Boot client application. Like before, you can use the Spring Initializer to generate a basic project structure. Add the Spring Cloud Starter Config as a dependency or you can add it manually to your pom.xml file.