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
5d42e8f7
Commit
5d42e8f7
authored
Jul 19, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改介绍
parent
fc8ae9d3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
README.md
+15
-13
No files found.
README.md
View file @
5d42e8f7
...
@@ -389,6 +389,20 @@ public class MyConfigAdapter extends ConfigAdapter {
...
@@ -389,6 +389,20 @@ public class MyConfigAdapter extends ConfigAdapter {
| --- | --- |
| --- | --- |
| 2222 | 3333 |
| 2222 | 3333 |
### 开始演示
-
启动服务注册发现中心,默认是Eureka。可供选择的有Eureka,Zuul,Zookeeper。Eureka,请启动discovery-springcloud-example-eureka下的应用,后两者自行安装服务器
-
根据上面选择的服务注册发现中心,对示例下的discovery-springcloud-example/pom.xml进行组件切换
```
xml
<dependency>
<groupId>
com.nepxion
</groupId>
<artifactId>
discovery-plugin-starter-eureka
</artifactId>
<!-- <artifactId>discovery-plugin-starter-consul</artifactId> -->
<!-- <artifactId>discovery-plugin-starter-zookeeper</artifactId> -->
<version>
${discovery.plugin.version}
</version>
</dependency>
```
-
根据上面选择的服务注册发现中心,对控制台下的discovery-springcloud-example-console/pom.xml进行组件切换切换
### 服务注册过滤的操作演示
### 服务注册过滤的操作演示
黑/白名单的IP地址注册的过滤
黑/白名单的IP地址注册的过滤
-
在rule.xml把本地IP地址写入到相应地方
-
在rule.xml把本地IP地址写入到相应地方
...
@@ -470,15 +484,3 @@ public class MyConfigAdapter extends ConfigAdapter {
...
@@ -470,15 +484,3 @@ public class MyConfigAdapter extends ConfigAdapter {
图7
图7


\ No newline at end of file
### 切换服务注册组件
如果使用者想改变服务注册组件,请在discovery-springcloud-example/pom.xml进行切换
```
xml
<dependency>
<groupId>
com.nepxion
</groupId>
<artifactId>
discovery-plugin-starter-eureka
</artifactId>
<!-- <artifactId>discovery-plugin-starter-consul</artifactId> -->
<!-- <artifactId>discovery-plugin-starter-zookeeper</artifactId> -->
<version>
${discovery.plugin.version}
</version>
</dependency>
```
\ No newline at end of file
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