Describe the bug Hi, using cloud config client version 3.0.0 and native profile for configuration I always get that configuration property sources could not be loaded and status is UNKNOWN when calling the actuator health check.

"clientConfigServer": {
  "status": "UNKNOWN",
  "details": {
    "error": "no property sources located"
  }
}

Comparing to spring boot 1.x I was receiving:

"configServer": {
  "status": "UP",
  "propertySources": [
     "file:C:\\Users\user\projects\tagging.yml",
  ]
}

Here is my configuration:

spring:
  application:
    name: my-app
  cloud:
    config:
      discovery:
        enabled: true
        serviceId: config-server
      failFast: false
      retry:
       initialInterval: 10000
       maxInterval: 60000
       maxAttempts: 12
       multiplier: 10.1

I see also the log that probably should be "CompositePropertySource" but is Bootstrap one:

2021-02-23 10:11:15.402 INFO b.c.PropertySourceBootstrapConfiguration : Located property source: [BootstrapPropertySource {name='bootstrapProperties-configClient'}, BootstrapPropertySource {name='bootstrapProperties-file:C:\Users\user\properties.yml'}]

Comment From: ryanjbaxter

Can you provide a complete, minimal, verifiable sample that reproduces the problem? It should be available as a GitHub (or similar) project or attached to this issue as a zip file.

Comment From: imosapatryk

Hi, here is my demo project. Let me now if you need something more: demo.zip


If I add this config:

spring:
  config:
    import: configserver:http//config-server

I get:

"clientConfigServer": {
"status": "UP",
"details": {
"propertySources": "MapPropertySource {name='configClient'}"
}
},

Comment From: ryanjbaxter

So adding

spring:
  config:
    import: configserver:http//config-server

fixes the problem?

Comment From: imosapatryk

Unfortunately not it just shows the label instead of the actual property path or something..

Comment From: spencergibb

1813 takes care of not having spring.config.import

Lets reword the title based on the last comment.