报错
Spring MVC found on classpath,which is incompatible with Spring Cloud Gateway at this time.Please remove spring-boot-starter-web dependency.
解决方法
在 Gateway 端移除跟 web 有关的配置。
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>