Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
apollo
Commits
da2d9db5
Commit
da2d9db5
authored
Jul 11, 2016
by
lepdou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
0919747e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
NamespaceLockAspect.java
...ramework/apollo/adminservice/aop/NamespaceLockAspect.java
+1
-1
ApolloConfigDemo.java
apollo-demo/src/main/java/ApolloConfigDemo.java
+1
-1
ApolloConfigFileDemo.java
apollo-demo/src/main/java/ApolloConfigFileDemo.java
+1
-1
app.properties
apollo-demo/src/main/resources/META-INF/app.properties
+1
-1
No files found.
apollo-adminservice/src/main/java/com/ctrip/framework/apollo/adminservice/aop/NamespaceLockAspect.java
View file @
da2d9db5
...
...
@@ -49,7 +49,7 @@ public class NamespaceLockAspect {
acquireLock
(
appId
,
clusterName
,
namespaceName
,
item
.
getDataChangeLastModifiedBy
());
}
//
cre
ate item
//
upd
ate item
@Before
(
"@annotation(PreAcquireNamespaceLock) && args(appId, clusterName, namespaceName, itemId, item, ..)"
)
public
void
requireLockAdvice
(
String
appId
,
String
clusterName
,
String
namespaceName
,
long
itemId
,
ItemDTO
item
)
{
...
...
apollo-demo/src/main/java/ApolloConfigDemo.java
View file @
da2d9db5
...
...
@@ -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
)
{
...
...
apollo-demo/src/main/java/ApolloConfigFileDemo.java
View file @
da2d9db5
...
...
@@ -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
);
...
...
apollo-demo/src/main/resources/META-INF/app.properties
View file @
da2d9db5
# test
app.id
=
test0711
app.id
=
song0711-02
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment