Commit 0138823f by lepdou

update

parent da2d9db5
......@@ -21,7 +21,7 @@ public class ApolloConfigDemo {
private Config config;
public ApolloConfigDemo() {
config = ConfigService.getConfig("BUS.test0711");
config = ConfigService.getAppConfig();
config.addChangeListener(new ConfigChangeListener() {
@Override
public void onChange(ConfigChangeEvent changeEvent) {
......
......@@ -15,7 +15,7 @@ import java.io.InputStreamReader;
public class ApolloConfigFileDemo {
private static final Logger logger = LoggerFactory.getLogger(ApolloConfigDemo.class);
private ConfigFile configFile;
private String namespace = "SCC.datasource";
private String namespace = "application";
public ApolloConfigFileDemo() {
configFile = ConfigService.getConfigFile(namespace, ConfigFileFormat.XML);
......
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