Feature Request: Add system:properties and system:env as sources #110
I would like to be able to specify system properties and/or environment variables as one potential source for properties in addition to files, especially when using the MERGE load type. Mainly I want to be able to conveniently override default values with system parameters.
Currently it is easy to add ALL system properties or environment variables to a config object. But I'd like to be able to specify the system as one potential source, rather than bloating my config object with everything.
Currently this can be done with a utility class, which checks if a property is in the config object before including new properties from the system. But it would be great if this was supported natively.
Specifically, I would like to be able to do something like the following.
In this case I would like the properties to be taken first from system properties, other from environment variables, otherwise from ~/myconfig.properties, etc.
The text was updated successfully, but these errors were encountered: