How do you properly set different Spring profiles in bootstrap file (for Spring Boot to target different Cloud Config Servers)?

前端 未结 3 1915
天命终不由人
天命终不由人 2020-12-30 01:51

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

3条回答
  •  甜味超标
    2020-12-30 02:12

    @LarryW (I cannot answer on the same comment):

    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.

提交回复
热议问题