No servers available for service: renren…。 Gateway 网关报503错误 ,已解决

目录

环境配置

问题描述

配置spring cloud gateway使用端口访问就可以,使用lb:// 就报503

xml 复制代码
gateway:
      routes:
        - id: admin_route
          uri: lb://gulimall-admin
#          uri: http://localhost:8080
          predicates:
            - Path=/api/**
          filters:
            - RewritePath=/api/?(?<segment>.*), /renren-fast/$\{segment}

原因:

gateway服务没有依赖loadbalancer包。

去renern-fast里面这么配置是错的。

sql 复制代码
<!--        <dependency>-->
<!--            <groupId>org.springframework.cloud</groupId>-->
<!--            <artifactId>spring-cloud-starter-loadbalancer</artifactId>-->
<!--            <version>3.1.1</version>-->
<!--        </dependency>-->

loadbalancer的作用

Spring Cloud LoadBalancer目前Spring官方是放在spring-cloud-commons里,Spring

Cloud最新版本为2021.0.2
Spring Cloud LoadBalancer 官网文档地址

https://docs.spring.io/spring-cloud-commons/docs/3.1.2/reference/html/#spring-cloud-loadbalancer
Spring Cloud官网文档地址

https://docs.spring.io/spring-cloud/docs/current/reference/html/

微服务生态组件之Spring Cloud LoadBalancer详解和源码分析

相关推荐
Xpower 1712 小时前
OpenClaw实战:从零开发电商小程序(2)
人工智能·语言模型·小程序·gateway
脱脱克克1 天前
云端 OpenClaw 远程执行本地进程原理机制详解:Gateway、approvals 与 system.run 到底谁在判定、谁在执行?
linux·gateway·openclaw
七夜zippoe2 天前
OpenClaw Gateway 服务:启动、停止、监控
微服务·架构·gateway·监控·openclaw
arvin_xiaoting2 天前
OpenClaw学习总结_I_核心架构系列_Gateway架构详解
学习·架构·llm·gateway·ai-agent·飞书机器人·openclaw
柯儿的天空2 天前
【OpenClaw 全面解析:从零到精通】第007篇:流量枢纽——OpenClaw Gateway 网关深度解析
人工智能·gpt·ai作画·gateway·aigc·ai编程·ai写作
Zhao_yani2 天前
微服务核心组件:Gateway
java·微服务·gateway
gallonyin2 天前
【企业级龙虾】LLM Gateway 工程化落地:配置中心、429故障转移与统计持久化实战
gateway·openclaw
道清茗3 天前
【Kubernetes知识点问答题】Kustomize、CRD 与 Gateway API
容器·kubernetes·gateway
专注_每天进步一点点3 天前
xxop网关 → APISIX集群(ApisixRoute) → 业务gateway模块 和 Serverless架构 区别和联系
架构·serverless·gateway
专注_每天进步一点点3 天前
流量从bcop网关到apisixroute,再到应用的gateway模块,再到其他服务
docker·kubernetes·gateway