一 代码位置
https://github.com/cakin24/spring-cloud-code/tree/master/ch12-5
二 配置
1 服务端配置
spring:
cloud:
config:
server:
git:
uri: https://gitee.com/cakin24/spring-cloud-config.git
#username:
#password:
search-paths: SC-BOOK-CONFIG
application:
name: ch12-5-config-server
server:
port: 9090
2 客户端配置
spring:
cloud:
config:
label: master
uri: http://localhost:9090
name: config-info
profile: dev
三 测试
1 启动 config-server
2 启动