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
6ad48acc
Commit
6ad48acc
authored
Mar 10, 2016
by
Yiming Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add sample apollo server and code style
parent
ccd81ee9
Expand all
Hide 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 @
6ad48acc
This diff is collapsed.
Click to expand it.
apollo-dev/style/intellij-java-google-style.xml
0 → 100644
View file @
6ad48acc
This diff is collapsed.
Click to expand it.
apollo-server/pom.xml
View file @
6ad48acc
...
...
@@ -15,5 +15,22 @@
<groupId>
com.ctrip.apollo
</groupId>
<artifactId>
apollo-core
</artifactId>
</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>
<build>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
</plugins>
</build>
</project>
apollo-server/src/main/java/com/ctrip/apollo/ConfigServerApplication.java
0 → 100644
View file @
6ad48acc
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 @
6ad48acc
server
:
port
:
8888
logging
:
level
:
org.springframework.cloud
:
'
DEBUG'
spring
:
profiles
:
active
:
native
apollo-server/src/main/resources/bootstrap.yml
0 → 100644
View file @
6ad48acc
spring
:
application
:
name
:
apollo-server
\ No newline at end of file
pom.xml
View file @
6ad48acc
...
...
@@ -7,7 +7,6 @@
<version>
0.0.1
</version>
<name>
Apollo
</name>
<packaging>
pom
</packaging>
<modules>
<module>
apollo-core
</module>
<module>
apollo-metaserver
</module>
...
...
@@ -55,9 +54,11 @@
</dependency>
<!--third party -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter
</artifactId>
<version>
1.3.3.RELEASE
</version>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-parent
</artifactId>
<version>
Angel.SR6
</version>
<type>
pom
</type>
<scope>
import
</scope>
</dependency>
<dependency>
<groupId>
mysql
</groupId>
...
...
@@ -66,12 +67,6 @@
</dependency>
<!--for test -->
<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>
<artifactId>
h2
</artifactId>
<version>
1.4.191
</version>
...
...
@@ -89,8 +84,19 @@
<url>
http://maven.dev.sh.ctripcorp.com:8081/nexus/content/repositories/fxsnapshot
</url>
</snapshotRepository>
</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>
<project.build.sourceEncoding>
utf-8
</project.build.sourceEncoding>
<java.version>
1.8
</java.version>
</properties>
</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