tnblog
首页
视频
资源
登录
昔我往矣,杨柳依依。今我来思,雨雪霏霏
排名
24
文章
20
粉丝
2
评论
2
ICP备案 :渝ICP备18016597号-1
网站信息:2018-2025TNBLOG.NET
技术交流:群号656732739
联系我们:contact@tnblog.net
公网安备:50010702506256
欢迎加群交流技术

Unable to start Ocelot, errors are: When not using service discovery DownstreamHostAndPorts

5716人阅读 2020/8/9 18:17 总访问:126185 评论:0 收藏:0 手机
分类: NET CORE

启动Ocelot报错:nable to start Ocelot, errors are: When not using service discovery DownstreamHostAndPorts

是因为Ocelot版本问题,意思就是缺少了DownstreamHostAndPorts的配置

以前的配置方法是:

  1. "DownstreamScheme""http"
  2. "DownstreamHost""localhost"

现在换成了只配置一个DownstreamHostAndPorts,其实也是为了集群方便吧

  1. "DownstreamHostAndPorts": [
  2.   {
  3.     "Host""localhost",
  4.     "Port"9001
  5.   }
  6. ],


评价