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
86435930
Commit
86435930
authored
Jul 15, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改介绍
parent
d6d55d90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
README.md
+16
-9
No files found.
README.md
View file @
86435930
...
@@ -78,8 +78,20 @@ Nepxion Discovery是一款对Spring Cloud的服务注册发现的增强中间件
...
@@ -78,8 +78,20 @@ Nepxion Discovery是一款对Spring Cloud的服务注册发现的增强中间件


## 兼容
## 兼容
最新版本兼容
版本兼容情况
-
Spring Cloud C版、D版和E版本,暂时不兼容F版本
-
Spring Cloud F版,请采用4.x.x版本,具体代码参考master分支
-
Spring Cloud C版、D版和E版,请采用3.x.x版本,具体代码参考Edgware分支
-
4.x.x版本由于Swagger和Spring Boot 2.x.x版本的Actuator用法有冲突,故暂时不支持Endpoint功能,其他功能和3.x.x版本一致
中间件兼容情况
-
Consul
-
Spring Cloud F版,最好采用Consul的1.2.1服务器版本(或者更高),从
[
https://releases.hashicorp.com/consul/1.2.1/
](
https://releases.hashicorp.com/consul/1.2.1/
)
获取
-
Spring Cloud C版、D版和E版,必须采用Consul的0.9.3服务器版本(或者更低),从
[
https://releases.hashicorp.com/consul/0.9.3/
](
https://releases.hashicorp.com/consul/0.9.3/
)
获取
-
Zookeeper
-
Spring Cloud F版,必须采用Zookeeper的3.5.x服务器版本(或者更高)
-
Spring Cloud C版、D版和E版,最好采用Zookeeper的3.5.0以下服务器版本(或者更低)
Eureka
-
跟Spring Cloud版本保持一致
## 依赖
## 依赖
微服务选择相应的插件引入
微服务选择相应的插件引入
...
@@ -285,7 +297,7 @@ public class DiscoveryConfigAdapter extends ConfigAdapter {
...
@@ -285,7 +297,7 @@ public class DiscoveryConfigAdapter extends ConfigAdapter {
```
```
## 管理中心
## 管理中心
> PORT端口号为server.port或者management.port都可以
> PORT端口号为server.port或者management.port都可以
(management.port开放只支持3.x.x版本)
### 配置接口
### 配置接口
### 版本接口
### 版本接口
### 路由接口
### 路由接口
...
@@ -302,7 +314,7 @@ public class DiscoveryConfigAdapter extends ConfigAdapter {
...
@@ -302,7 +314,7 @@ public class DiscoveryConfigAdapter extends ConfigAdapter {
-
与远程配置中心整合
-
与远程配置中心整合
-
与UI整合
-
与UI整合
> PORT端口号为server.port或者management.port都可以
> PORT端口号为server.port或者management.port都可以
(management.port开放只支持3.x.x版本)
### 控制台接口
### 控制台接口
参考Swagger界面,如下图
参考Swagger界面,如下图
...
@@ -316,11 +328,6 @@ public class DiscoveryConfigAdapter extends ConfigAdapter {
...
@@ -316,11 +328,6 @@ public class DiscoveryConfigAdapter extends ConfigAdapter {
集成了健康检查的Consul控制台
集成了健康检查的Consul控制台


## Spring Cloud引入Consul的坑
spring-cloud-consul的2.0.0.RELEASE(目前最新的稳定版)支持consul-api-1.2.2版本,它不兼容Consul的1.0.0以上的服务器,原因是服务的deregister在consul-api-1.2.2中是执行GET方法,而Consul的1.0.0以上的服务器对应的是PUT方法。解决方案,二选一
-
选用1.0.0以下的服务器,从
[
https://releases.hashicorp.com/consul/0.9.3/
](
https://releases.hashicorp.com/consul/0.9.3/
)
获取
-
或者,spring-cloud-consul中consul-api-1.2.2.jar替换到最新的版本
## 示例演示
## 示例演示
### 场景描述
### 场景描述
本例将模拟一个较为复杂的场景,如下图
本例将模拟一个较为复杂的场景,如下图
...
...
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