Commit 1c3de94c by Andrei Sfat Committed by Dave Syer

Add slash to eureka.client.service-url

Makes use of StringUtils.commaDelimitedListToStringArray Fixes gh-980
parent 9bd3a66b
......@@ -432,7 +432,7 @@ public class EurekaClientConfigBean implements EurekaClientConfig, EurekaConstan
serviceUrls = this.serviceUrl.get(DEFAULT_ZONE);
}
if (!StringUtils.isEmpty(serviceUrls)) {
final String[] serviceUrlsSplit = serviceUrls.split(",");
final String[] serviceUrlsSplit = StringUtils.commaDelimitedListToStringArray(serviceUrls);
List<String> eurekaServiceUrls = new ArrayList<>(serviceUrlsSplit.length);
for (String eurekaServiceUrl : serviceUrlsSplit) {
if (!endsWithSlash(eurekaServiceUrl)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment