Spring Cloud构建微服务架构(四)分布式配置中心

This commit is contained in:
程序猿DD
2016-07-07 17:52:41 +08:00
committed by zhaiyongchao
parent 6a71dfcb53
commit 9ff6e9a1ef
11 changed files with 128 additions and 5 deletions
@@ -1,13 +1,14 @@
spring.application.name=config-server
server.port=7001
# git管理配置
spring.cloud.config.server.git.uri=http://git.oschina.net/didispace/SpringBoot-Learning/
spring.cloud.config.server.git.searchPaths=Chapter9-1-4
spring.cloud.config.server.git.searchPaths=Chapter9-1-4/config-repo
spring.cloud.config.server.git.username=username
spring.cloud.config.server.git.password=password
# 开启本地配置
#spring.profiles.active=native
spring.profiles.active=native
@@ -0,0 +1 @@
from=local-dev
@@ -0,0 +1 @@
from=local-prod
@@ -0,0 +1 @@
from=local-test