January 2018
Intermediate to advanced
414 pages
10h 29m
English
The configuration may change for many reasons. In our development environment, we will probably not always have the same configuration as in our production environment, since things such as connections to the external system (for example, databases, or other services) may change between them.
Spring Cloud provides an easy mechanism to change our configuration using profiles. Let's modify our configuration files to be able to handle different profiles.
In our config server directory, we will create a new file under the main/src/resources/config/greetings-production.yml path:
microservice: example: greetings: "hello from another profile"
This will specify the value of our configuration for another profile, and since ...
Read now
Unlock full access