Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 885 Bytes

environment_variables.md

File metadata and controls

20 lines (14 loc) · 885 Bytes

Environment Variables Guidelines

Micro services should be following 12 Factor App principles and reading their configuration from environment variables.

Reading environment variables

Java applications

Teams may choose to use either Spring or the Companies House environment-reader-library library. They should be consistent in their choice for all the micro services that form a coherent group.

It is recommended that Spring Boot projects use application.properties to refer to environmental variables so they can be used by Spring features such as SPEL expressions.

How to use Spring application configuration is provide in the Spring documention for external configuration