Skip to content

spring.config.additional-location is ignored when spring.config.location is configured #20745

@wilkinsona

Description

@wilkinsona

This issue relates to #20743.

When we fixed #10595, I don't think we considered a scenario where both spring.config.additional-location and spring.config.location are configured. As things stand, when spring.config.location is configured, spring.config.additional-location is ignored. I'm not sure that this is the right behaviour.

The documentation for spring.config.location states that its locations "replace the default locations". The documentation for spring.config.addition-location states that its locations "are used in addition to the default locations". Given this description of the behaviour, I think it's reasonable to expect the additional locations to be used as well as those that have replaced the defaults.

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