spring cloud gateway Unable to find instance for 问题解决

位置:首页>文章>详情   分类: 教程分享   阅读(640)   2024-04-17 10:31:34

环境说明

  • spring cloud 2021.04
  • spring cloud alibaba 2021.0.4
  • spring boot 2.6.13
  • nacos 2.2.3

问题排查

【已排查】service 未注册服务到nacos

【已排查】servicer name 编写错误,url错误

问题解决

新版的spring cloud gateway(或者其他服务)如果需要查看注册中心其他服务,需要单独引入以下依赖

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-loadbalancer</artifactId>
</dependency>

搞定

地址:https://www.leftso.com/article/1673599370475343873.html

相关阅读

环境说明spring cloud 2021.04 spring cloud alibaba 2021.0.4 spring boot 2.6.13 nacos 2.2.3 问题排查...
错误信息 spring cloud 启动报错 No spring.config.import property has been defined 环境说明 spring ...
从nacos2.2.x spring cloud alibaba 2021.x开始,nacos默认需要配置用户名和密码,如下所示
在spring cloud项目中配置配置服务的地址spring.cloud.config.uri不生效的解决办法,spring cloud
随着Spring Cloud 的越来越流行,国内很多公司也在开始使用该框架了
项目源码下载:(访问密码:9987)Spring-Cloud-Circuit-Breaker.zip学习在调用底层微服务的同时利用调用的Spring Cloud Netflix堆栈组件之一Hys...
1. 什么是 spring cloud?spring cloud 是一系列框架的有序集合
演示项目源码下载:(访问密码:9987)spring-cloud-zipkin.zipZipkin是非常有效的工具分布追踪在微服务生态系统
演示项目源码下载:(访问密码:9987)spring-cloud-config-server-git.zip微服务方法现在已经成为任何新 API 开发的行业标准,几乎所有组织都在推广它
演示项目源码下载:(访问密码:9987)Spring-Cloud-discovery-server.zip 了解如何创建微服务的基础上,Spring Cloud,对Netflix的Eureka注...