Commit da2d9db5 by lepdou

update

parent 0919747e
......@@ -49,7 +49,7 @@ public class NamespaceLockAspect {
acquireLock(appId, clusterName, namespaceName, item.getDataChangeLastModifiedBy());
}
//create item
//update item
@Before("@annotation(PreAcquireNamespaceLock) && args(appId, clusterName, namespaceName, itemId, item, ..)")
public void requireLockAdvice(String appId, String clusterName, String namespaceName, long itemId,
ItemDTO item) {
......
......@@ -21,7 +21,7 @@ public class ApolloConfigDemo {
private Config config;
public ApolloConfigDemo() {
config = ConfigService.getConfig("testYYMMDD");
config = ConfigService.getConfig("BUS.test0711");
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 = "application";
private String namespace = "SCC.datasource";
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