Skip to content

Invalid property arrays overriding in profile-specific property files #2611

@mkadan

Description

@mkadan

Spring Boot 1.2.2.RELEASE

I'm using @ConfigurationProperties annotation on class to populate properties.
Consider having these property files:

application.yml:

urls:
                      - http://www.aargauerzeitung.ch
                      - http://www.bzbasel.ch
                      - http://www.basellandschaftlichezeitung.ch
                      - http://www.limmattalerzeitung.ch

application-dev.yml:

urls:
                      - http://google.com

When launching the app with -Dspring.profiles.active=dev I got the following value for "urls":

                      - http://google.com
                      - http://www.bzbasel.ch
                      - http://www.basellandschaftlichezeitung.ch
                      - http://www.limmattalerzeitung.ch

but it should be just:

                      - http://google.com

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions