Spring Cloud Config serves configuration based on app name, profile and label. I'm wondering, how to differentiate configuration of two instances of same service on same environment. They should basically have the same configuration, but, for example, I would like to allow on testing environment running them on the same host, so I need different ports.
How you solve this? Using fake profiles (dev-1, dev2)? Or is there some better way?
答案 0 :(得分:2)
如您所述,没有针对单个实例配置的工具。你可以做假的个人资料。但是对于端口,为什么不设置server.port
?