Commit da2d9db5 by lepdou

update

parent 0919747e
...@@ -49,7 +49,7 @@ public class NamespaceLockAspect { ...@@ -49,7 +49,7 @@ public class NamespaceLockAspect {
acquireLock(appId, clusterName, namespaceName, item.getDataChangeLastModifiedBy()); acquireLock(appId, clusterName, namespaceName, item.getDataChangeLastModifiedBy());
} }
//create item //update item
@Before("@annotation(PreAcquireNamespaceLock) && args(appId, clusterName, namespaceName, itemId, item, ..)") @Before("@annotation(PreAcquireNamespaceLock) && args(appId, clusterName, namespaceName, itemId, item, ..)")
public void requireLockAdvice(String appId, String clusterName, String namespaceName, long itemId, public void requireLockAdvice(String appId, String clusterName, String namespaceName, long itemId,
ItemDTO item) { ItemDTO item) {
......
...@@ -21,7 +21,7 @@ public class ApolloConfigDemo { ...@@ -21,7 +21,7 @@ public class ApolloConfigDemo {
private Config config; private Config config;
public ApolloConfigDemo() { public ApolloConfigDemo() {
config = ConfigService.getConfig("testYYMMDD"); config = ConfigService.getConfig("BUS.test0711");
config.addChangeListener(new ConfigChangeListener() { config.addChangeListener(new ConfigChangeListener() {
@Override @Override
public void onChange(ConfigChangeEvent changeEvent) { public void onChange(ConfigChangeEvent changeEvent) {
......
...@@ -15,7 +15,7 @@ import java.io.InputStreamReader; ...@@ -15,7 +15,7 @@ import java.io.InputStreamReader;
public class ApolloConfigFileDemo { public class ApolloConfigFileDemo {
private static final Logger logger = LoggerFactory.getLogger(ApolloConfigDemo.class); private static final Logger logger = LoggerFactory.getLogger(ApolloConfigDemo.class);
private ConfigFile configFile; private ConfigFile configFile;
private String namespace = "application"; private String namespace = "SCC.datasource";
public ApolloConfigFileDemo() { public ApolloConfigFileDemo() {
configFile = ConfigService.getConfigFile(namespace, ConfigFileFormat.XML); 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