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
6beb247a
Commit
6beb247a
authored
Jul 02, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改介绍
parent
1e3cfaeb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
README.md
+5
-3
No files found.
README.md
View file @
6beb247a
...
@@ -166,7 +166,7 @@ Nepxion Discovery是一款对Spring Cloud Discovery的服务注册增强插件
...
@@ -166,7 +166,7 @@ Nepxion Discovery是一款对Spring Cloud Discovery的服务注册增强插件
2. 提供端的application.properties未定义版本号,当消费端在xml里不做任何版本配置,才可以访问该提供端
2. 提供端的application.properties未定义版本号,当消费端在xml里不做任何版本配置,才可以访问该提供端
```
```
### 动态改变版本
的
规则策略
### 动态改变版本规则策略
微服务启动的时候,由于版本已经写死在application.properties里,使用者希望改变一下版本,而不重启微服务,达到访问版本的路径改变
微服务启动的时候,由于版本已经写死在application.properties里,使用者希望改变一下版本,而不重启微服务,达到访问版本的路径改变
```
xml
```
xml
1. 版本分为本地版本和动态版本
1. 版本分为本地版本和动态版本
...
@@ -285,7 +285,8 @@ Url:
...
@@ -285,7 +285,8 @@ Url:
http:
//IP:[server.port]/instances/{serviceId}
http:
//IP:[server.port]/instances/{serviceId}
```
```
### 获取本地节点的路由信息(只显示当前节点的简单信息,不包含下级路由)
### 获取本地节点的路由信息
只显示当前节点的简单信息,不包含下级路由
```
java
```
java
Java:
Java:
@RequestMapping
(
path
=
"/info"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
path
=
"/info"
,
method
=
RequestMethod
.
GET
)
...
@@ -315,7 +316,8 @@ Url:
...
@@ -315,7 +316,8 @@ Url:
http:
//IP:[server.port]/route/{routeServiceId}/{routeHost}/{routePort}
http:
//IP:[server.port]/route/{routeServiceId}/{routeHost}/{routePort}
```
```
### 获取全路径的路由信息(serviceIds按调用服务名的前后次序排列,起始节点的服务名不能加上去。如果多个用“;”分隔,不允许出现空格)
### 获取全路径的路由信息
serviceIds按调用服务名的前后次序排列,起始节点的服务名不能加上去。如果多个用“;”分隔,不允许出现空格
```
java
```
java
Java:
Java:
@RequestMapping
(
path
=
"/routeAll"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
path
=
"/routeAll"
,
method
=
RequestMethod
.
POST
)
...
...
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