Troubles with spring-cloud-starter-bootstrap: bootstrap.yml not loaded

Hello,

I’m trying to integrate Spring Boot Cloud into my Camunda Platform and in particular trying to retrieve the Spring Boot configuration using a Spring Cloud Config Server. For that I’ve added 2 dependencies to my pom.xml:

    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-bootstrap</artifactId>
    </dependency>

    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-config</artifactId>
    </dependency>

In my bootstrap.yml, I’ve added the different properties required to access the remote configuration repositories in particular the spring.cloud.config.uri property.

But when my WS is starting, the URI property is apparently never accessed. Only the http://localhost:8888 is displayed. The only way to inject the correct value for the URI is to use an environment variable. I have the impression that the bootstrap.yml is simply not read.

Camunda Platform: 7.16
Spring Boot: 2.5.5
Spring Boot Cloud: 2020.0.4

Thanks in advance
BR
Pascal

Hello,
I’ve solved my problem: in my pom.xml, when loading the resources, bootstrap.yml was excluded from my load list.
Sorry for the disturbance
Pascal

1 Like