Externalised configuration

Applications are typically built once (in JAR or WAR) and then deployed into multiple environments. ;The following figure shows some of the different environments an application can be deployed to:

In each of the preceding environments, an application typically ;has the following:

  • Connections to databases
  • Connections to multiple ;services
  • Specific environment configurations

It is a good practice to externalize configurations that change between different environments into a configuration file or database.

Spring Boot provides ;a flexible, standardized approach for externalized configuration.

In this section, ...

Get Mastering Spring 5.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.