Spring cloud 2020 gateway nacos 出现503的情况
参考https://blog.csdn.net/weixin_39233623/article/details/121197242
在搭建spring cloud gateway 服务的时候,出现了503(sercice Unavailable),使用的是spring cloud 2020版本,注册中心选用的是nacos。
主要是因为 nacos兼容feign,feign集成ribbon,默认实现负载均衡;nacos不兼容spring cloud gateway自带的ribbon,所以我们只需要重新在gateway中引入feign依赖。

<!--fegin组件 fhadmin.org-->
<dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>
<!-- Feign Client for loadBalancing -->
<dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-loadbalancer</artifactId>
</dependency>

————————————————
版权声明:本文为CSDN博主「一条不愿透露姓名的咸鱼」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_39233623/article/details/121197242

Spring cloud 2020 gateway nacos 出现503的情况相关推荐

  1. spring cloud 2021 gateway 报错503 Service Unavailable

    gateway的application.yml文件配置如下: server:port: 8001 spring:cloud:gateway:#路由配置routes:#唯一标识符- id: driver ...

  2. Spring Cloud Alibaba - Gateway 入门案例(二)(Gateway 整合 nacos /(非阿里组件))

    Spring Cloud Alibaba - Gateway 入门案例(二)(Gateway 整合 nacos)(非阿里组件) 回溯 Gateway 整合 nacos 方式一(复杂/灵活/常用) 方式 ...

  3. Spring Cloud 2020.0.0 正式发布,对开发者来说意味着什么?

    作者 | YourBatman 在线教育领域资深架构师,Spring Framework 开源贡献者 冷冷 云集架构师.开源项目 pig 负责人.Spring Cloud Alibaba Commit ...

  4. Spring Cloud 2020.0.5 发布

    来源 | 公众号「Java架构日记」 Spring Cloud 2020.0.5 正式发布,这是错误修正版本.兼容 Spring Boot 2.4.x and 2.5.x, 不支持 2.6.x (请使 ...

  5. Spring Cloud 2020.0.4 发布!

    作者 | 冷冷 来源 | https://mp.weixin.qq.com/s/ugyP_6s8XJxLk_2L9e_8PA Spring Cloud 2020.0.4 正式发布,这是错误修正版本.兼 ...

  6. Spring Cloud Alibaba - 19 Nacos Config配置中心加载不同微服务的通用配置的两种方式

    文章目录 Pre 实现 方式一 通过 shared-dataids 方式 方式二 通过 ext-config方式 配置文件优先级 源码 Pre Spring Cloud Alibaba - 18 Na ...

  7. Spring Cloud——Spring Cloud Alibaba 2021 Nacos Config bootstrap 配置文件失效解决方案

    基本概念 微服务是基于Spring Cloud框架搭建的,Spring Cloud Config作为服务配置中心. 业务服务只配置服务名称.启用环境和config的URL地址,其他都配置在配置中心,例 ...

  8. Spring Cloud入门-Gateway服务网关(Hoxton版本)

    文章目录 Spring Cloud入门系列汇总 摘要 Gateway 简介 相关概念 创建 api-gateway模块 在pom.xml中添加相关依赖 两种不同的配置路由方式 使用yml配置 使用Ja ...

  9. Spring Cloud :Gateway 网关限流(五)

    目录 一.概述 1. 为什么需要限流 二.限流算法 1. 计数器算法 2. 漏桶算法 3. 令牌桶算法 四.Gateway 限流 1. 添加依赖 2. 配置文件 3. 限流规则配置类 Spring C ...

最新文章

  1. 用户重要数据转移方法〖罗斌个人工作经验谈〗
  2. 认识实时动态测量技术
  3. 兰蔻御用运维总结之一
  4. 需求用例分析之三:补充规约
  5. 微信小程序怎么在wxml中插入多个图片_兰州小程序开发流程费用推荐品牌_便企网...
  6. c语言二级指针有什么作用,C语言中二级指针的实例详解
  7. JavaScript全面学习(中阶)
  8. jQuery 树插件ZTree使用Demo
  9. 批处理 无效驱动器规格_电脑维修之硬盘驱动器的常见故障判断
  10. [转载] Python简介、linux上Python及其IDE的安装和详细配置
  11. 1,SFDC 开发篇 - 类对象和SOQL查询
  12. 深度学习——(4)VGG16 图像分类
  13. EDKII Build Process:EDKII项目源码的配置、编译流程[3]
  14. 全文检索技术Lucene
  15. VUE中根据文件后缀名显示对应的图标
  16. 为什么要成为「无敌」程序员?
  17. Windows Mobile四大猜想 能否取代Windows?
  18. 轻薄游戏本没性能?醒醒 外星人来了
  19. 【Unity打包崩溃】安卓包遇到CrashReport-Native: Faile to open comm file(/system/build.prop)就闪退
  20. 特征筛选:重要性评估

热门文章

  1. 什么是版本控制和版本控制工具?
  2. 01_Chrome模拟微信内置浏览器
  3. Suricata详解
  4. swift编码出现Call can throw, but it is not marked with 'try' and the error is not handled错误的解决
  5. Linux用户类型简述
  6. 计算机网络配件有哪些,计算机的五大部件是什么
  7. python随机数集合_python随机数学习
  8. Flutter 弹出键盘认识
  9. 医院管理系统设计与实现(论文+源码)_kaic
  10. Ubuntu18.04安装Aspera批量下载SRA数据