Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-cloud-netflix
Commits
f934b88a
Commit
f934b88a
authored
Oct 17, 2014
by
Dave Syer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure eureka client has a default zone with a serviceUrl
parent
859c96d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
spring-cloud-netflix.adoc
docs/src/main/asciidoc/spring-cloud-netflix.adoc
+4
-0
EurekaClientConfigBean.java
...ramework/cloud/netflix/eureka/EurekaClientConfigBean.java
+1
-2
No files found.
docs/src/main/asciidoc/spring-cloud-netflix.adoc
View file @
f934b88a
:github-tag: master
:github-repo: spring-cloud/spring-cloud-netflix
:github-raw: http://raw.github.com/{github-repo}/{github-tag}
:github-code: http://github.com/{github-repo}/tree/{github-tag}
= Spring Cloud Netflix
include::intro.adoc[]
...
...
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/eureka/EurekaClientConfigBean.java
View file @
f934b88a
...
...
@@ -83,7 +83,6 @@ public class EurekaClientConfigBean implements EurekaClientConfig {
{
serviceUrl
.
put
(
DEFAULT_ZONE
,
"http://localhost:8761/v2/"
);
serviceUrl
.
put
(
"default"
,
"http://localhost:8761/v2/"
);
}
private
boolean
gZipContent
=
true
;
...
...
@@ -154,7 +153,7 @@ public class EurekaClientConfigBean implements EurekaClientConfig {
public
List
<
String
>
getEurekaServerServiceUrls
(
String
myZone
)
{
String
serviceUrls
=
serviceUrl
.
get
(
myZone
);
if
(
serviceUrls
==
null
||
serviceUrls
.
isEmpty
())
{
serviceUrls
=
serviceUrl
.
get
(
"default"
);
serviceUrls
=
serviceUrl
.
get
(
DEFAULT_ZONE
);
}
if
(
serviceUrls
!=
null
)
{
return
Arrays
.
asList
(
serviceUrls
.
split
(
","
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment