Skip to content

Commit cd39a68

Browse files
committed
Initial commit
1 parent d02def4 commit cd39a68

File tree

9 files changed

+254
-0
lines changed

9 files changed

+254
-0
lines changed

.gitignore

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
# Created by https://www.gitignore.io/api/macos,maven,intellij
2+
# Edit at https://www.gitignore.io/?templates=macos,maven,intellij
3+
4+
### Intellij ###
5+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
6+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
7+
8+
# User-specific stuff
9+
.idea/**/workspace.xml
10+
.idea/**/tasks.xml
11+
.idea/**/usage.statistics.xml
12+
.idea/**/dictionaries
13+
.idea/**/shelf
14+
15+
# Generated files
16+
.idea/**/contentModel.xml
17+
18+
# Sensitive or high-churn files
19+
.idea/**/dataSources/
20+
.idea/**/dataSources.ids
21+
.idea/**/dataSources.local.xml
22+
.idea/**/sqlDataSources.xml
23+
.idea/**/dynamic.xml
24+
.idea/**/uiDesigner.xml
25+
.idea/**/dbnavigator.xml
26+
27+
# Gradle
28+
.idea/**/gradle.xml
29+
.idea/**/libraries
30+
31+
# Gradle and Maven with auto-import
32+
# When using Gradle or Maven with auto-import, you should exclude module files,
33+
# since they will be recreated, and may cause churn. Uncomment if using
34+
# auto-import.
35+
# .idea/modules.xml
36+
# .idea/*.iml
37+
# .idea/modules
38+
39+
# CMake
40+
cmake-build-*/
41+
42+
# Mongo Explorer plugin
43+
.idea/**/mongoSettings.xml
44+
45+
# File-based project format
46+
*.iws
47+
48+
# IntelliJ
49+
out/
50+
51+
# mpeltonen/sbt-idea plugin
52+
.idea_modules/
53+
54+
# JIRA plugin
55+
atlassian-ide-plugin.xml
56+
57+
# Cursive Clojure plugin
58+
.idea/replstate.xml
59+
60+
# Crashlytics plugin (for Android Studio and IntelliJ)
61+
com_crashlytics_export_strings.xml
62+
crashlytics.properties
63+
crashlytics-build.properties
64+
fabric.properties
65+
66+
# Editor-based Rest Client
67+
.idea/httpRequests
68+
69+
# Android studio 3.1+ serialized cache file
70+
.idea/caches/build_file_checksums.ser
71+
72+
# JetBrains templates
73+
**___jb_tmp___
74+
75+
### Intellij Patch ###
76+
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
77+
78+
# *.iml
79+
# modules.xml
80+
# .idea/misc.xml
81+
# *.ipr
82+
83+
# Sonarlint plugin
84+
.idea/sonarlint
85+
86+
### macOS ###
87+
# General
88+
.DS_Store
89+
.AppleDouble
90+
.LSOverride
91+
92+
# Icon must end with two \r
93+
Icon
94+
95+
# Thumbnails
96+
._*
97+
98+
# Files that might appear in the root of a volume
99+
.DocumentRevisions-V100
100+
.fseventsd
101+
.Spotlight-V100
102+
.TemporaryItems
103+
.Trashes
104+
.VolumeIcon.icns
105+
.com.apple.timemachine.donotpresent
106+
107+
# Directories potentially created on remote AFP share
108+
.AppleDB
109+
.AppleDesktop
110+
Network Trash Folder
111+
Temporary Items
112+
.apdisk
113+
114+
### Maven ###
115+
target/
116+
pom.xml.tag
117+
pom.xml.releaseBackup
118+
pom.xml.versionsBackup
119+
pom.xml.next
120+
release.properties
121+
dependency-reduced-pom.xml
122+
buildNumber.properties
123+
.mvn/timing.properties
124+
.mvn/wrapper/maven-wrapper.jar
125+
126+
# End of https://www.gitignore.io/api/macos,maven,intellij

.idea/.name

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/encodings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SpringCloudConfig.iml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4" />

pom.xml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>com.kesizo.miroservices.config</groupId>
8+
<artifactId>SpringCloudConfigurationServer</artifactId>
9+
<version>1.0-SNAPSHOT</version>
10+
11+
<!-- 1) Spring Boot project -->
12+
<parent>
13+
<groupId>org.springframework.boot</groupId>
14+
<artifactId>spring-boot-starter-parent</artifactId>
15+
<version>2.1.3.RELEASE</version>
16+
</parent>
17+
18+
<!-- 2) Java and Spring Cloud versions -->
19+
<properties>
20+
<java.version>1.8</java.version>
21+
<spring-cloud.version>Greenwich.SR1</spring-cloud.version>
22+
</properties>
23+
24+
25+
<dependencies>
26+
<!-- 3a) Dependency for spring-cloud-config-Server -->
27+
<dependency>
28+
<groupId>org.springframework.cloud</groupId>
29+
<artifactId>spring-cloud-config-server</artifactId>
30+
</dependency>
31+
32+
<!-- 3b) Dependency for testing boot projects -->
33+
<dependency>
34+
<groupId>org.springframework.boot</groupId>
35+
<artifactId>spring-boot-starter-test</artifactId>
36+
<scope>test</scope>
37+
</dependency>
38+
</dependencies>
39+
40+
<!-- 4) Dependency Management -->
41+
<dependencyManagement>
42+
<dependencies>
43+
<dependency>
44+
<groupId>org.springframework.cloud</groupId>
45+
<artifactId>spring-cloud-dependencies</artifactId>
46+
<version>${spring-cloud.version}</version>
47+
<type>pom</type>
48+
<scope>import</scope>
49+
</dependency>
50+
</dependencies>
51+
</dependencyManagement>
52+
53+
<!-- 5) Maven Plugin to build spring boot applications -->
54+
<build>
55+
<plugins>
56+
<plugin>
57+
<groupId>org.springframework.boot</groupId>
58+
<artifactId>spring-boot-maven-plugin</artifactId>
59+
</plugin>
60+
</plugins>
61+
</build>
62+
63+
</project>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package com.kesizo.microservices.config;
2+
3+
import org.springframework.boot.SpringApplication;
4+
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
import org.springframework.cloud.config.server.EnableConfigServer;
6+
7+
@SpringBootApplication
8+
@EnableConfigServer
9+
public class ApplicationConfigServer {
10+
11+
public static void main(String[] args) {
12+
SpringApplication.run(ApplicationConfigServer.class, args);
13+
}
14+
}

src/main/resources/application.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# HTTP Server
2+
server:
3+
port: 8888
4+
5+
spring:
6+
# Spring Cloud Config Server Repository
7+
cloud:
8+
config:
9+
server:
10+
git:
11+
uri: https://github.com/migueldoctor/SpringCloudConfig-GitRepository
12+
13+
# Spring properties
14+
profiles:
15+
active: dev

0 commit comments

Comments
 (0)