Skip to content

PropertySource overrides do not work with more than one classpath file [SPR-12244] #16858

@spring-projects-issues

Description

@spring-projects-issues

James Green opened SPR-12244 and commented

My colleague has been battling to make his application accept @Value values from a -Dserver.properties file.

Take the following gist: https://gist.github.com/jmkgreen/7dd07d28486b5620c741

A key x in myapp.properties with value 1 will be read in as 1.

Then add x in server.properties with value 2. This does not override.

Remove hibernate.properties and the override works.

He's now merging the two shipped property files into one to overcome this issue.


Affects: 4.1 GA

Issue Links:

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions