Dynamic configuration
We have all worked on applications that use different configuration files or associated metadata to allow you to specify configuration parameters that make an application work. When we are talking about microservices, we need to approach this configuration process in a different way. We should avoid configuration files and instead adopt the twelve-fact app configuration style (as outlined at https://12factor.net), proposed by Heroku. When we are using this configuration style, we want to externalize all the properties that are different in each environment and make them easy and convenient to create and change.
By default, Spring Boot applications can work using command-line arguments, JNDI names, or environment variables. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access