commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Heger (JIRA)" <>
Subject [jira] [Commented] (CONFIGURATION-676) Configuration with OS Environment Variables
Date Fri, 24 Nov 2017 20:28:01 GMT


Oliver Heger commented on CONFIGURATION-676:

Commons Configuration already has support for reading environment variables. There is the
dedicated {{EnviromentConfiguration}} class for this purpose.

It is also possible to integrate values from environment variables into other configurations
using interpolation with the {{env}} prefix. This is described in the user's guide at

> Configuration with OS Environment Variables
> -------------------------------------------
>                 Key: CONFIGURATION-676
>                 URL:
>             Project: Commons Configuration
>          Issue Type: New Feature
>            Reporter: Robin Björklin
> Handling configuration with Environment Variables have become more commonplace with the
advent of containers and it would be very nice if it were to be supported by commons-configuration.
> An example project doing this would be Spring Boot where where an configuration property
such as *colors.background* could be picked up as the environment variable *COLORS_BACKGROUND*.
> Would this make sense for commons-configuration?
> Reference:

This message was sent by Atlassian JIRA

View raw message