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
df65c5a3
Commit
df65c5a3
authored
Mar 10, 2016
by
Yiming Liu
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2 from yiming187/master
Add sample apollo server and code style
parents
cf5d2f9e
6ad48acc
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
62 additions
and
10 deletions
+62
-10
eclipse-java-google-style.xml
apollo-dev/style/eclipse-java-google-style.xml
+0
-0
intellij-java-google-style.xml
apollo-dev/style/intellij-java-google-style.xml
+0
-0
pom.xml
apollo-server/pom.xml
+17
-0
ConfigServerApplication.java
...c/main/java/com/ctrip/apollo/ConfigServerApplication.java
+15
-0
application.yml
apollo-server/src/main/resources/application.yml
+10
-0
bootstrap.yml
apollo-server/src/main/resources/bootstrap.yml
+4
-0
pom.xml
pom.xml
+16
-10
No files found.
apollo-dev/style/eclipse-java-google-style.xml
0 → 100644
View file @
df65c5a3
This diff is collapsed.
Click to expand it.
apollo-dev/style/intellij-java-google-style.xml
0 → 100644
View file @
df65c5a3
This diff is collapsed.
Click to expand it.
apollo-server/pom.xml
View file @
df65c5a3
...
@@ -15,5 +15,22 @@
...
@@ -15,5 +15,22 @@
<groupId>
com.ctrip.apollo
</groupId>
<groupId>
com.ctrip.apollo
</groupId>
<artifactId>
apollo-core
</artifactId>
<artifactId>
apollo-core
</artifactId>
</dependency>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-config
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
</dependencies>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
</plugins>
</build>
</project>
</project>
apollo-server/src/main/java/com/ctrip/apollo/ConfigServerApplication.java
0 → 100644
View file @
df65c5a3
package
com
.
ctrip
.
apollo
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.config.server.EnableConfigServer
;
@SpringBootApplication
@EnableConfigServer
public
class
ConfigServerApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
ConfigServerApplication
.
class
,
args
);
}
}
apollo-server/src/main/resources/application.yml
0 → 100644
View file @
df65c5a3
server
:
port
:
8888
logging
:
level
:
org.springframework.cloud
:
'
DEBUG'
spring
:
profiles
:
active
:
native
apollo-server/src/main/resources/bootstrap.yml
0 → 100644
View file @
df65c5a3
spring
:
application
:
name
:
apollo-server
\ No newline at end of file
pom.xml
View file @
df65c5a3
...
@@ -7,7 +7,6 @@
...
@@ -7,7 +7,6 @@
<version>
0.0.1
</version>
<version>
0.0.1
</version>
<name>
Apollo
</name>
<name>
Apollo
</name>
<packaging>
pom
</packaging>
<packaging>
pom
</packaging>
<modules>
<modules>
<module>
apollo-core
</module>
<module>
apollo-core
</module>
<module>
apollo-metaserver
</module>
<module>
apollo-metaserver
</module>
...
@@ -55,9 +54,11 @@
...
@@ -55,9 +54,11 @@
</dependency>
</dependency>
<!--third party -->
<!--third party -->
<dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-boot-starter
</artifactId>
<artifactId>
spring-cloud-starter-parent
</artifactId>
<version>
1.3.3.RELEASE
</version>
<version>
Angel.SR6
</version>
<type>
pom
</type>
<scope>
import
</scope>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
mysql
</groupId>
<groupId>
mysql
</groupId>
...
@@ -66,12 +67,6 @@
...
@@ -66,12 +67,6 @@
</dependency>
</dependency>
<!--for test -->
<!--for test -->
<dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<version>
1.3.3.RELEASE
</version>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
com.h2database
</groupId>
<groupId>
com.h2database
</groupId>
<artifactId>
h2
</artifactId>
<artifactId>
h2
</artifactId>
<version>
1.4.191
</version>
<version>
1.4.191
</version>
...
@@ -89,8 +84,19 @@
...
@@ -89,8 +84,19 @@
<url>
http://maven.dev.sh.ctripcorp.com:8081/nexus/content/repositories/fxsnapshot
</url>
<url>
http://maven.dev.sh.ctripcorp.com:8081/nexus/content/repositories/fxsnapshot
</url>
</snapshotRepository>
</snapshotRepository>
</distributionManagement>
</distributionManagement>
<repositories>
<repository>
<id>
spring-milestones
</id>
<name>
Spring Milestones
</name>
<url>
https://repo.spring.io/libs-milestone
</url>
<snapshots>
<enabled>
false
</enabled>
</snapshots>
</repository>
</repositories>
<properties>
<properties>
<project.build.sourceEncoding>
utf-8
</project.build.sourceEncoding>
<project.build.sourceEncoding>
utf-8
</project.build.sourceEncoding>
<java.version>
1.8
</java.version>
</properties>
</properties>
</project>
</project>
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