Open octopus-prime opened 5 years ago
I have services with hyphen e.g user-service name with which it is registered on discovery server. I am using properties file instead of yml but this should not make any difference.
user-service.ribbon.listOfServers=http://localhost:9999
Straight out of the Spring.io/guides for Ribbon. To hardcode them:
Service-name:
ribbon:
eureka:
enabled: false
listOfServers: localhost:8090,localhost:9092,localhost:9999
Without hyphen in service-id the configuration works well. But with hyphen in service-id the configuration does not find the service-id.
bootstrap.yml:
error:
So, how to configure listOfServers for foo-service?