We have different config servers per environment. Each spring boot application should target its corresponding config server. I have tried to achieve this by setting profil
I guess the advantage of explicitly adding the property is that it allows you to add a default value (in this case "dev") in case of not setting up the environment variable.