BAEL-90 - versioned config

This commit is contained in:
slavisa-baeldung 2016-08-04 06:31:44 +02:00
parent 99254e9826
commit 2040fda6d2
6 changed files with 12 additions and 2 deletions

View File

@ -83,6 +83,7 @@
<module>spring-spel</module> <module>spring-spel</module>
<module>spring-rest</module> <module>spring-rest</module>
<module>spring-rest-docs</module> <module>spring-rest-docs</module>
<module>spring-cloud-config</module>
<module>spring-security-basic-auth</module> <module>spring-security-basic-auth</module>
<module>spring-security-custom-permission</module> <module>spring-security-custom-permission</module>

View File

@ -12,4 +12,10 @@
<module>server</module> <module>server</module>
<module>client</module> <module>client</module>
</modules> </modules>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.5.RELEASE</version>
</parent>
</project> </project>

View File

@ -1,6 +1,6 @@
server.port=8888 server.port=8888
spring.cloud.config.server.git.uri=${CONFIG_REPO} spring.cloud.config.server.git.uri=https://github.com/eugenp/tutorials
spring.cloud.config.server.git.clone-on-start=true spring.cloud.config.server.git.clone-on-start=false
security.user.name=root security.user.name=root
security.user.password=s3cr3t security.user.password=s3cr3t
encrypt.key-store.location=classpath:/config-server.jks encrypt.key-store.location=classpath:/config-server.jks

View File

@ -1,5 +1,6 @@
package com.baeldung.spring.cloud.config.server; package com.baeldung.spring.cloud.config.server;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.springframework.boot.test.SpringApplicationConfiguration; import org.springframework.boot.test.SpringApplicationConfiguration;

View File

@ -0,0 +1 @@
user.role=Developer

View File

@ -0,0 +1 @@
user.role=User