Commit 64c5f001 by Nepxion

修改介绍

parent 8910a447
......@@ -37,27 +37,28 @@ Nepxion Discovery是一款对Spring Cloud Discovery的服务注册增强插件
### 配置文件
```xml
<?xml version="1.0" encoding="UTF-8"?>
<discovery>
<?xml version="1.0" encoding="UTF-8"?>
<plugin>
<!-- 服务注册的黑/白名单过滤。白名单表示只允许指定IP地址前缀注册,黑名单表示不允许指定IP地址前缀注册。每个服务只能同时开启要么白名单,要么黑名单 -->
<!-- filter-type,可选值BLACKLIST/WHITELIST,表示白名单或者黑名单 -->
<!-- filter-type,可选值BLACKLIST/WHITELIST,表示白名单或者黑名单 -->
<!-- service-name,表示服务名 -->
<!-- filter-value,表示黑/白名单的IP地址列表。IP地址一般用前缀来表示,如果多个用“;”分隔 -->
<!-- 表示下面所有服务,不允许10.10和11.11为前缀的IP地址注册(全局过滤) -->
<filter filter-type="BLACKLIST" filter-value="10.10;11.11">
<register filter-type="BLACKLIST" filter-value="10.10;11.11">
<!-- 表示下面服务,不允许172.16和10.10和11.11为前缀的IP地址注册 -->
<service service-name="discovery-springcloud-example-a" filter-value="172.16"/>
</filter>
</register>
<!-- 服务注册下,服务多版本调用的控制 -->
<!-- 服务发现下,服务多版本调用的控制 -->
<!-- service-name,表示服务名 -->
<!-- version-value,表示可供访问的版本,如果多个用“;”分隔 -->
<version>
<discovery>
<!-- 表示消费端服务a,允许访问提供端服务b的1.0版本-->
<consumer service-name="discovery-springcloud-example-a">
<provider service-name="discovery-springcloud-example-b" version-value="1.0"/>
</consumer>
</version>
</discovery>
</discovery>
</plugin>
```
### 代码示例
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment