I have a property `test=default` in class DefaultConfig, and I'm making them available using @PropertySource annotation.
I then want to be able to override to `test=override`, which is in a different properties file in class OverrideConfig, so I again use @PropertySource.
I configure a test to prove that it works.
Except of course it does not.
org.junit.ComparisonFailure: expected:<[override]> but was:<[default]>
Maxing out debug, I can see what's happening:
StandardEnvironment:107 - Adding [class path resource [default.properties]] PropertySource with lowest search precedence
StandardEnvironment:107 - Adding [class path resource [override.properties]] PropertySource with lowest search precedence
I can't provide default property values in base configurations and then override them in others.
Am I making a simple mistake or misthinking this, or would you expect the properties defined by an @PropertySource in an @Import-ed configuration class to be overridden by properties defined in am @PropertySource in the @Import-ing class?