diff --git a/pom.xml b/pom.xml index ea1cc21169..ef700d13a6 100644 --- a/pom.xml +++ b/pom.xml @@ -83,6 +83,7 @@ spring-spel spring-rest spring-rest-docs + spring-cloud-config spring-security-basic-auth spring-security-custom-permission diff --git a/spring-cloud-config/pom.xml b/spring-cloud-config/pom.xml index 11a12ea063..bce1fb3fa4 100644 --- a/spring-cloud-config/pom.xml +++ b/spring-cloud-config/pom.xml @@ -12,4 +12,10 @@ server client + + + org.springframework.boot + spring-boot-starter-parent + 1.3.5.RELEASE + diff --git a/spring-cloud-config/server/src/main/resources/application.properties b/spring-cloud-config/server/src/main/resources/application.properties index 46b3bf8089..28213f3cbb 100644 --- a/spring-cloud-config/server/src/main/resources/application.properties +++ b/spring-cloud-config/server/src/main/resources/application.properties @@ -1,6 +1,6 @@ server.port=8888 -spring.cloud.config.server.git.uri=${CONFIG_REPO} -spring.cloud.config.server.git.clone-on-start=true +spring.cloud.config.server.git.uri=https://github.com/eugenp/tutorials +spring.cloud.config.server.git.clone-on-start=false security.user.name=root security.user.password=s3cr3t encrypt.key-store.location=classpath:/config-server.jks diff --git a/spring-cloud-config/server/src/test/java/com/baeldung/spring/cloud/config/server/ConfigServerTests.java b/spring-cloud-config/server/src/test/java/com/baeldung/spring/cloud/config/server/ConfigServerTests.java index c8125a63c0..7bde39615b 100644 --- a/spring-cloud-config/server/src/test/java/com/baeldung/spring/cloud/config/server/ConfigServerTests.java +++ b/spring-cloud-config/server/src/test/java/com/baeldung/spring/cloud/config/server/ConfigServerTests.java @@ -1,5 +1,6 @@ package com.baeldung.spring.cloud.config.server; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.SpringApplicationConfiguration; diff --git a/spring-cloud-config/versioned-config/config-client-development.properties b/spring-cloud-config/versioned-config/config-client-development.properties new file mode 100644 index 0000000000..d96f3ac0c5 --- /dev/null +++ b/spring-cloud-config/versioned-config/config-client-development.properties @@ -0,0 +1 @@ +user.role=Developer \ No newline at end of file diff --git a/spring-cloud-config/versioned-config/config-client-production.properties b/spring-cloud-config/versioned-config/config-client-production.properties new file mode 100644 index 0000000000..b341a9b750 --- /dev/null +++ b/spring-cloud-config/versioned-config/config-client-production.properties @@ -0,0 +1 @@ +user.role=User \ No newline at end of file