In some case, it would be interressed to be able to set quarkus.eureka.service-url.default with multiple eureka location.
In documentation, it 's specified but it does not work
In ServiceLocationConfig we could do a small change:
Replace
public ServiceLocationConfig(Collection<String> locationsAsString) { this.locations = locationsAsString.stream().map(Location::new).collect(Collectors.toList()); }
By
public ServiceLocationConfig(Collection<String> locationsAsString) { this.locations = locationsAsString.stream().map(s->s.split("\\,")) .flatMap(Stream::of).map(Location::new).collect(Collectors.toList());}
Hello,
In some case, it would be interressed to be able to set quarkus.eureka.service-url.default with multiple eureka location. In documentation, it 's specified but it does not work
In ServiceLocationConfig we could do a small change: Replace
public ServiceLocationConfig(Collection<String> locationsAsString) { this.locations = locationsAsString.stream().map(Location::new).collect(Collectors.toList()); }
Bypublic ServiceLocationConfig(Collection<String> locationsAsString) { this.locations = locationsAsString.stream().map(s->s.split("\\,")) .flatMap(Stream::of).map(Location::new).collect(Collectors.toList());}