caoxiaokai

1.搭建网关模块

2.引入依赖:starter-gateway

3.编写启动类

4.编写配置文件

5.启动测试

依赖所需要导入的代码

<!--引入gateway网关-->

<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-boot-starter-gatway</artifactId>
</dependency>
<!--eureka-client--->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>
</dependencies>

分类:

技术点:

相关文章:

  • 2021-11-20
  • 2021-10-18
  • 2021-12-13
  • 2021-11-15
  • 2021-06-21
  • 2018-09-16
  • 2021-12-03
猜你喜欢
  • 2021-11-20
  • 2021-11-20
  • 2021-11-20
  • 2021-12-12
  • 2021-12-08
  • 2021-11-20
  • 2021-06-07
相关资源
相似解决方案