按照官方文档部署好了 apollo,并创建了值,也发布了,最后asp.net core程序里面返回 null ,始终获取不到值,百度N久无果。
google搜搜搜,终于找到解决方法,参考:https://github.com/ctripcorp/apollo.net/issues/46
解决方法:在 appsettings.json apollo 配置节点下面添加 "MetaServer": "http://127.0.0.1:8080" 配置
"apollo": {
"AppId": "demo0001",
"MetaServer": "http://127.0.0.1:8080",
"ConfigServer": [ "http://127.0.0.1:8080/" ]
}
官网docker 部署文档:https://github.com/ctripcorp/apollo/wiki/Apollo-Quick-Start-Docker%E9%83%A8%E7%BD%B2
本文地址:https://blog.csdn.net/jxl15680701016/article/details/107483551
如对本文有疑问, 点击进行留言回复!!
2016年信息安全工程师综合知识第11-15题解析【建群网培信息安全工程师】
网友评论