Skip to content

default configuration ("application") is not loaded if the application name starts with "application".  #2259

@kvmw

Description

@kvmw

Describe the bug
According to the spring cloud config docs for a given application name foo the server creates an Environment from application.yml (shared between all clients) and foo.yml (with foo.yml taking precedence).

This is not the case if the application name start with application (e.g. applicationfoobar). In this case the Environment from application.yml is ignored and only the one from applicationfoobar.yml is crated.

Looking at the NativeEnvironmentRepository source in the line number 228 one can see the reason:

    if (!config.startsWith("application")) {
	    config = "application," + config;
    }

I didn't find anything in the docs to indicate if this is intended behaviour or a bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions