SpringBoot版本:2.7.1
SpringCloud版本:2021.0.3
简单学习了下Gateway的配置
首先导入依赖,下方链接是使用过程中遇到的问题
使用Gateway出现Spring MVC found on classpath, which is incompatible with Spring Cloud Gateway.
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-gateway</artifactId>
</dependency>
<!--Hystrix-->
<!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-starter-netflix-hystrix -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
<version>2.2.10.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId