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
5fb0b39b
Commit
5fb0b39b
authored
Jun 23, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改介绍
parent
ad2ebd10
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
README.md
+12
-7
No files found.
README.md
View file @
5fb0b39b
...
...
@@ -13,10 +13,7 @@ Nepxion Discovery是一款对Spring Cloud Discovery的服务注册增强插件
2. 实现通过多版本配置实现灰度访问控制
3. 实现通过远程配置中心控制黑/白名单和灰度版本,实现动态通知
4. 实现通过事件总线机制异步对接远程配置中心,提供使用者实现和扩展
5. 实现支持本地配置和远程配置的可选
## 鸣谢
感谢Spring Cloud中国社区刘石明提供代码支持和建议
5. 实现支持本地配置和远程配置的选择
## 依赖
```
xml
...
...
@@ -100,9 +97,14 @@ eureka.client.serviceUrl.defaultZone=http://10.0.75.1:9528/eureka/
eureka.instance.preferIpAddress=true
eureka.instance.metadataMap.version=1.0
# Gray version control
spring.application.discovery.version.enabled=true
# Get remote or config
# Plugin config
# 开启和关闭服务注册层面的控制。一旦关闭,服务注册的黑/白名单过滤功能将失效。缺失则默认为true
spring.application.register.control.enabled=true
# 开启和关闭服务发现层面的控制。一旦关闭,服务多版本调用的控制功能将失效,动态屏蔽指定IP地址的服务示例功能将失效。缺失则默认为true
spring.application.discovery.control.enabled=true
# 开启和关闭远程配置中心规则配置文件读取。一旦关闭,默认读取本地规则配置文件(例如:rule.xml)。缺失则默认为true
spring.application.discovery.remote.config.enabled=true
management.security.enabled=false
...
...
@@ -118,3 +120,6 @@ management.security.enabled=false
http://localhost:4321/instances
```
你可以看到通过A服务去获取B服务的被过滤的实例列表,虽然A服务定时器会更新不不同的配置,获取到的实例列表也随着变更
## 鸣谢
感谢Spring Cloud中国社区刘石明提供代码支持和建议
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