Skip to content

Improper precedence between property in global section of application.yml and global section of foo.yml #3220

@loganankarbergmdu

Description

@loganankarbergmdu

I am using config server against a git repository. This git repostiory has two files, application.yml and foo.yml (my app is named foo).
example:

application.yml

myglobalsectionwithwhateverelse
---
spring.config.activate.on-profile: myprofile
myproperty: value1

foo.yml

myproperty: value2
---
spring.config.activate.on-profile: myprofile
... other properties

The property being resolved in my application when i use profile myprofile is value1, where I would expect it to be value2. This is because any properties in the app specific yaml should be more important.

I am using spring cloud starter config version 4.3.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions