一 代码位置
https://github.com/cakin24/spring-cloud-code/tree/master/ch12-4
二 脚本
{
"label" : "master",
"profile" : "prod",
"source" : {
"cn" : {
"springcloud" : {
"book" : {
"config" : "I am the mongdb configuration file from dev environment. I will edit."
}
}
}
}
}
插入数据库后的效果
三 测试
1 启动config-server-mongodb
2 启动config-client-mongodb