Commit ea6fbd44 by Nepxion

修改测试用例

parent 5fb0b39b
......@@ -14,7 +14,7 @@ import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import com.nepxion.discovery.plugin.example.impl.DiscoveryConfigSimulator;
import com.nepxion.discovery.plugin.example.impl.DiscoveryConfigSubscriber;
import com.nepxion.discovery.plugin.example.impl.DiscoveryConfigLoader;
@SpringBootApplication
......@@ -30,7 +30,7 @@ public class DiscoveryApplication {
}
@Bean
public DiscoveryConfigSimulator discoveryConfigSimulator() {
return new DiscoveryConfigSimulator();
public DiscoveryConfigSubscriber discoveryConfigSubscriber() {
return new DiscoveryConfigSubscriber();
}
}
\ No newline at end of file
......@@ -30,7 +30,7 @@ public class DiscoveryConfigLoader extends AbstractConfigLoader {
return "classpath:rule1.xml";
// 配置文件放在工程根目录下
// return "file:plugin1.xml";
// return "file:rule1.xml";
}
private InputStream getInputStream(String fileName) {
......
......@@ -24,7 +24,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import com.nepxion.discovery.plugin.configcenter.ConfigPublisher;
// 模拟从远程配置中心接受配置更新
public class DiscoveryConfigSimulator {
public class DiscoveryConfigSubscriber {
@Autowired
private ConfigPublisher configPublisher;
......
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