本文主要是介绍阿里springcloud alibaba 网关gateway + nacos 遇到503错误,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
POM文件依赖
<dependencies><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter</artifactId></dependency><dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-gateway</artifactId><version>3.0.2</version></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-test</artifactId><scope>test</scope></dependency>
</dependencies>
nacos的版本如下:
<properties><nacos.version>2021.1</nacos.version>
</properties>
gateway的application.yml文件配置如下:
//fhadmin.cn
server:port: 9040spring:application:name: gatewayclou
这篇关于阿里springcloud alibaba 网关gateway + nacos 遇到503错误的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!