What is Developed:
Springboot Restful webservice App is deployed to Pivotal Cloud Foundry.
Config server connects to Github and loaded all the property files.
Springboot App connects to Config Server to read the properties.
Springboot App will be accessed from Dev, INT and QA environments
My Question:
Example App: https://spring-boot-webservice-app.example.com/app is running on cloud
Config Server has three different property files like dev.properties, int.properties and qa.properties. Example app running on cloud https://spring-boot-webservice-app.example.com/app
Requests: 1. https://spring-boot-webservice-app.example.com/app/dev/get - read dev.properties 2. https://spring-boot-webservice-app.example.com/app/int/get- read int.properties 3. https://spring-boot-webservice-app.example.com/app/qa/get- read qa.properties
Same app will be called from dev, int and qa environments, So how will the spring boot webservice app know from which environment is the request coming from so that the app will read the correct properties for that environment without restarting or re-deploying the App?