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
c8f3486e
Commit
c8f3486e
authored
Feb 15, 2017
by
Jason Song
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix coverity bug
parent
a80159f3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
14 deletions
+8
-14
pom.xml
apollo-demo/pom.xml
+1
-0
AnnotationApplication.java
...p/framework/apollo/demo/spring/AnnotationApplication.java
+4
-7
XmlApplication.java
...om/ctrip/framework/apollo/demo/spring/XmlApplication.java
+3
-7
No files found.
apollo-demo/pom.xml
View file @
c8f3486e
...
...
@@ -11,6 +11,7 @@
<name>
Apollo Demo
</name>
<packaging>
jar
</packaging>
<properties>
<java.version>
1.7
</java.version>
<github.path>
${project.artifactId}
</github.path>
<!-- apollo spring integration requires Spring 3.1.1+ -->
<spring-demo.version>
3.1.1.RELEASE
</spring-demo.version>
...
...
apollo-demo/src/main/java/com/ctrip/framework/apollo/demo/spring/AnnotationApplication.java
View file @
c8f3486e
...
...
@@ -2,7 +2,7 @@ package com.ctrip.framework.apollo.demo.spring;
import
org.springframework.context.annotation.AnnotationConfigApplicationContext
;
import
java.
io.IOException
;
import
java.
util.Scanner
;
/**
* @author Jason Song(song_s@ctrip.com)
...
...
@@ -12,12 +12,9 @@ public class AnnotationApplication {
new
AnnotationConfigApplicationContext
(
AnnotationApplication
.
class
.
getPackage
().
getName
());
onKeyExit
();
}
private
static
void
onKeyExit
()
{
System
.
out
.
println
(
"Press any key to exit..."
);
try
{
System
.
in
.
read
();
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
System
.
out
.
println
(
"Press Enter to exit..."
);
new
Scanner
(
System
.
in
).
nextLine
();
}
}
apollo-demo/src/main/java/com/ctrip/framework/apollo/demo/spring/XmlApplication.java
View file @
c8f3486e
...
...
@@ -2,7 +2,7 @@ package com.ctrip.framework.apollo.demo.spring;
import
org.springframework.context.support.ClassPathXmlApplicationContext
;
import
java.
io.IOException
;
import
java.
util.Scanner
;
/**
* @author Jason Song(song_s@ctrip.com)
...
...
@@ -14,11 +14,7 @@ public class XmlApplication {
}
private
static
void
onKeyExit
()
{
System
.
out
.
println
(
"Press any key to exit..."
);
try
{
System
.
in
.
read
();
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
System
.
out
.
println
(
"Press Enter to exit..."
);
new
Scanner
(
System
.
in
).
nextLine
();
}
}
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