SpringCloudAlibaba踩坑日记(三)GateWay type=Service Unavailable, status=503

前因

这俩天闲来无事想搭建一套最新版本的微服务,顺便写博客记录一下,我用的是当前时间(2022-04-14)最新版本

在这里插入图片描述
在这里插入图片描述

gateway 版本 3.3.1

报错内容

Whitelabel Error Page
This application has no configured error view, so you are seeing this as a fallback.

Sat Apr 16 13:54:55 CST 2022
[ea5eb192-1] There was an unexpected error (type=Service Unavailable, status=503).
在这里插入图片描述

解决方案

pom添加依赖
<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-loadbalancer</artifactId>
</dependency>
我估摸着是springboot 版本问题?  
  • 我在使用2.2.7gateway的时候并不需要加载这个依赖
  • 大家有知道是什么原因的可以给我留言

猜你喜欢

转载自blog.csdn.net/weixin_43627706/article/details/124212718