tnblog
首页
视频
资源
登录
昔我往矣,杨柳依依。今我来思,雨雪霏霏
排名
6
文章
6
粉丝
16
评论
8
{{item.articleTitle}}
{{item.blogName}} : {{item.content}}
ICP备案 :渝ICP备18016597号-1
网站信息:2018-2024TNBLOG.NET
技术交流:群号656732739
联系我们:contact@tnblog.net
欢迎加群交流技术

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

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

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

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

以前的配置方法是:

"DownstreamScheme": "http"
"DownstreamHost": "localhost"

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

"DownstreamHostAndPorts": [
  {
    "Host": "localhost",
    "Port": 9001
  }
],


评价