Closed
Description
I'm not sure if this is a duplicate, but it could be of this one: #2018
Using Git, and also back when I started using SVN, it is posible to have more profiles in the same file, active profile cased based.
a: 0
---
spring:
config:
activate:
on-profile: test1
a: 1
---
spring:
config:
activate:
on-profile: test2
a: 2
This doesn't work with the S3 implementation, as, if normal properties file it just loads all into a Properties object, and if yml using YamlPropertiesFactoryBean that reads from a YAML source, exposing a flat structure of String property values - this will end up always getting the last set property in the file and not a result based on the active profile.