Commit 8c2e21d0 by Nepxion

修改介绍

parent bab62667
......@@ -111,8 +111,8 @@ Nepxion Discovery是一款对Spring Cloud Discovery的服务注册增强插件
继承ConfigAdapter.java
```java
public class DiscoveryConfigAdapter extends ConfigAdapter {
// 通过application.properties里的spring.application.discovery.remote.config.enabled=true,来决定主动从本地,还是远程配置中心获取规则
// 从本地获取规则
// 通过application.properties里的spring.application.discovery.remote.config.enabled=true,来决定主动从本地,还是远程配置中心获取规则
@Override
protected String getLocalContextPath() {
// 规则文件放在resources目录下
......
......@@ -20,8 +20,8 @@ import com.nepxion.discovery.plugin.configcenter.ConfigAdapter;
// 模拟主动从本地或远程配置中心获取规则
// 模拟订阅远程配置中心的规则更新
public class DiscoveryConfigAdapter extends ConfigAdapter {
// 通过application.properties里的spring.application.discovery.remote.config.enabled=true,来决定主动从本地,还是远程配置中心获取规则
// 从本地获取规则
// 通过application.properties里的spring.application.discovery.remote.config.enabled=true,来决定主动从本地,还是远程配置中心获取规则
@Override
protected String getLocalContextPath() {
// 规则文件放在resources目录下
......
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