Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
discovery
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈文顺
discovery
Commits
2b9551c4
Commit
2b9551c4
authored
Aug 14, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复小Bug
parent
f7cdc9ab
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
discovery-plugin-strategy-extension-gateway/src/main/java/com/nepxion/discovery/plugin/strategy/extension/gateway/impl/VersionDiscoveryEnabledAdapter.java
+1
-1
discovery-plugin-strategy-extension-service/src/main/java/com/nepxion/discovery/plugin/strategy/extension/service/impl/VersionDiscoveryEnabledAdapter.java
+1
-1
discovery-plugin-strategy-extension-zuul/src/main/java/com/nepxion/discovery/plugin/strategy/extension/zuul/impl/VersionDiscoveryEnabledAdapter.java
+1
-1
discovery-springcloud-example-service/src/main/java/com/nepxion/discovery/plugin/example/service/extension/MyDiscoveryEnabledExtension.java
+1
-1
No files found.
discovery-plugin-strategy-extension-gateway/src/main/java/com/nepxion/discovery/plugin/strategy/extension/gateway/impl/VersionDiscoveryEnabledAdapter.java
View file @
2b9551c4
...
...
@@ -51,7 +51,7 @@ public class VersionDiscoveryEnabledAdapter implements DiscoveryEnabledAdapter {
Map
<
String
,
String
>
versionMap
=
JsonUtil
.
fromJson
(
versionJson
,
Map
.
class
);
String
versions
=
versionMap
.
get
(
serviceId
);
if
(
StringUtils
.
isEmpty
(
versions
)
)
{
if
(
versions
==
null
)
{
return
true
;
}
...
...
discovery-plugin-strategy-extension-service/src/main/java/com/nepxion/discovery/plugin/strategy/extension/service/impl/VersionDiscoveryEnabledAdapter.java
View file @
2b9551c4
...
...
@@ -56,7 +56,7 @@ public class VersionDiscoveryEnabledAdapter implements DiscoveryEnabledAdapter {
Map
<
String
,
String
>
versionMap
=
JsonUtil
.
fromJson
(
versionJson
,
Map
.
class
);
String
versions
=
versionMap
.
get
(
serviceId
);
if
(
StringUtils
.
isEmpty
(
versions
)
)
{
if
(
versions
==
null
)
{
return
true
;
}
...
...
discovery-plugin-strategy-extension-zuul/src/main/java/com/nepxion/discovery/plugin/strategy/extension/zuul/impl/VersionDiscoveryEnabledAdapter.java
View file @
2b9551c4
...
...
@@ -51,7 +51,7 @@ public class VersionDiscoveryEnabledAdapter implements DiscoveryEnabledAdapter {
Map
<
String
,
String
>
versionMap
=
JsonUtil
.
fromJson
(
versionJson
,
Map
.
class
);
String
versions
=
versionMap
.
get
(
serviceId
);
if
(
StringUtils
.
isEmpty
(
versions
)
)
{
if
(
versions
==
null
)
{
return
true
;
}
...
...
discovery-springcloud-example-service/src/main/java/com/nepxion/discovery/plugin/example/service/extension/MyDiscoveryEnabledExtension.java
View file @
2b9551c4
...
...
@@ -56,7 +56,7 @@ public class MyDiscoveryEnabledExtension implements DiscoveryEnabledExtension {
String
filterServiceId
=
"discovery-springcloud-example-c"
;
String
filterToken
=
"123"
;
if
(
StringUtils
.
equals
(
serviceId
,
filterServiceId
)
&&
StringUtils
.
isNotEmpty
(
token
)
&&
token
.
contains
(
filterToken
))
{
LOG
.
info
(
"过滤条件:当serviceId={} && Token含有'{}'的时候,不能被Ribbon负载均衡到"
,
filterToken
);
LOG
.
info
(
"过滤条件:当serviceId={} && Token含有'{}'的时候,不能被Ribbon负载均衡到"
,
filter
ServiceId
,
filter
Token
);
return
false
;
}
...
...
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