Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter 'quarkus.eureka.service-url.default' can't take multiple eureka locations #61

Open
LudovicPEGON opened this issue Jun 9, 2023 · 1 comment

Comments

@LudovicPEGON
Copy link

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

image

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());}

@fmcejudo
Copy link
Owner

Hi @lpegon , thanks for reporting that. I will take a look and replace it. Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants