gateway报错:org.springframework.cloud.gateway.support.NotFoundException: Unable to find instance for localhost

配置:

解决gateway报错org.springframework.cloud.gateway.support.NotFoundException: Unable to find instance for

浏览器访问: http://localhost:8888/cloud_producer/get   (cloud_producer是我注册到注册中心的一个客户端)

访问不到自己想要的数据,但是通过端口号访问就可以。

修改为为全部大写也不行,并关闭了lowerCaseServiceId。

 

最后发现:是要使用中划线,而不是下划线

相关文章:

  • 2023-02-13
  • 2021-12-22
  • 2021-09-30
  • 2021-04-01
  • 2021-10-19
  • 2022-02-10
  • 2021-04-02
  • 2021-12-23
猜你喜欢
  • 2021-11-24
  • 2021-09-15
  • 2021-07-10
  • 2022-12-23
  • 2022-12-23
  • 2021-08-13
  • 2022-12-23
相关资源
相似解决方案