In Spring I can reference some other property value as variable in a property source
base:
hostName: foo.baa.com
services
serviceUrl: http://${base.hostName}/fooService
This returns http://foo.baa.com/fooService. But only if base.hostName ist defined in the same file. If it's defined in another PropertySource I get http://${base.hostName}/fooService.
Can I get this running over several PropertySources?
EDIT: It was just a stupid typo. You can perfectly fine reference variables defined in other PropertySources