Skip to content

@PropertySource not overriding in order [SPR-13500] #18078

@spring-projects-issues

Description

@spring-projects-issues

sreekanth opened SPR-13500 and commented

We are facing a similar issue just like reported in spring-boot spring-projects/spring-boot#916

we have some annotation config like below

@Configuration
@PropertySource(value = {
        "classpath:application-config.properties",
        "classpath:application-override.properties",
        "classpath:application-${user.name}-override.properties",
        "classpath:abc-config.properties"}, ignoreResourceNotFound = true)
public class ApplicationConfig { ...

according to my understanding, values in abc-config.properties should have high precedence over the other 3 properties in order, but that's not happening.


Affects: 4.2 GA

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: invalidAn issue that we don't feel is valid

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions