Describe the bug propert spring.config.import is list but when i use Yaml list like this:

spring:
  config:
    import:
      - configserver:${CONFIG_SERVER_URL}
      - classpath:my-custom-file.yml

i get error:

***************************
APPLICATION FAILED TO START
***************************

Description:

The spring.config.import property is missing a configserver: entry

Action:

Add a spring.config.import=configserver: property to your configuration.
    If configuration is not required add spring.config.import=optional:configserver: instead.
    To disable this check, set spring.cloud.config.enabled=false or 
    spring.cloud.config.import-check.enabled=false.

it's because of org.springframework.cloud.config.client.ConfigServerConfigDataMissingEnvironmentPostProcessor#postProcessEnvironment in the code you're getting this property like this: String property = environment.getProperty("spring.config.import"); but when i use list entry in my yaml "spring.config.import" is not correct because it's "spring.config.import[0]" and "spring.config.import[1]"

current workaround is write spring.config.import like Set, spring handle it correctly and then this postProcessEnvironment chech works:

spring:
  config:
    import: configserver:${CONFIG_SERVER_URL},classpath:my-custom-file.yml

but then when i wan't to add some other import for specific profile in different yml e.g. application-local.yml instead off add new item to list i rewrite whole property so then i have to add spring.cloud.config.import-check.enabled=fase to be able to start my application at local