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
81ae3fa7
Commit
81ae3fa7
authored
Jun 28, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改介绍
parent
c693ad8a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
README.md
+3
-3
No files found.
README.md
View file @
81ae3fa7
...
@@ -233,7 +233,7 @@ AbstractDiscoveryListener,实现服务发现的扩展和监听
...
@@ -233,7 +233,7 @@ AbstractDiscoveryListener,实现服务发现的扩展和监听
图1
图1


上述服务分别见discovery-springcloud-example-xx字样的
2
个工程,对应的版本,端口号如下表
上述服务分别见discovery-springcloud-example-xx字样的
3
个工程,对应的版本,端口号如下表
| 服务 | 服务端口 | 管理端口 | 版本 |
| 服务 | 服务端口 | 管理端口 | 版本 |
| --- | --- | --- | --- |
| --- | --- | --- | --- |
...
@@ -245,7 +245,7 @@ AbstractDiscoveryListener,实现服务发现的扩展和监听
...
@@ -245,7 +245,7 @@ AbstractDiscoveryListener,实现服务发现的扩展和监听
| C3 | 1302 | 无 | 1.2 |
| C3 | 1302 | 无 | 1.2 |
```
xml
```
xml
自行搭建Eureka服务,并在2个example工程中application.properties的Eureka地址替换掉
把discovery-springcloud-example-eureka,并在3个discovery-springcloud-example-xx工程中application.properties的Eureka地址替换掉本地地址
```
```
### 运行效果
### 运行效果
...
@@ -258,7 +258,7 @@ AbstractDiscoveryListener,实现服务发现的扩展和监听
...
@@ -258,7 +258,7 @@ AbstractDiscoveryListener,实现服务发现的扩展和监听
黑/白名单的IP地址发现的过滤,多版本灰度访问控制(单个微服务需要推送多次,如果是远程配置中心,则推送一次够了)
黑/白名单的IP地址发现的过滤,多版本灰度访问控制(单个微服务需要推送多次,如果是远程配置中心,则推送一次够了)
```
xml
```
xml
1. 启动
2
个工程共6个Application
1. 启动
3
个工程共6个Application
2. 通过Postman或者浏览器,执行GET http://localhost:1100/instances,查看当前A服务可访问B服务的列表
2. 通过Postman或者浏览器,执行GET http://localhost:1100/instances,查看当前A服务可访问B服务的列表
3. 通过Postman或者浏览器,执行GET http://localhost:1200/instances,查看当前B1服务可访问C服务的列表
3. 通过Postman或者浏览器,执行GET http://localhost:1200/instances,查看当前B1服务可访问C服务的列表
4. 通过Postman或者浏览器,执行GET http://localhost:1201/instances,查看当前B2服务可访问C服务的列表
4. 通过Postman或者浏览器,执行GET http://localhost:1201/instances,查看当前B2服务可访问C服务的列表
...
...
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