启动gateway报错

**********************************************************

Spring MVC found on classpath, which is incompatible with Spring Cloud Gateway at this time. Please remove spring-boot-starter-web dependency.

**********************************************************

原因:

因为springclougateway的内部是通过netty + webflux实现的,webflux是和springmvc有冲突的,由于父项目中有web,需要移除掉

 去除以后就可以启动成功了

原文地址:https://www.cnblogs.com/dalianpai/p/12288329.html