Gateway模块中启动报:Spring MVC found on classpath, which is incompatible with Spring Cloud Gateway at this time. Please remove spring-boot-starter-web dependency
原因是引入了 spring-boot-starter-web依赖
在pom文件中将 spring-boot-starter-web 依赖移除即可
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>