启动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,需要移除掉

 

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

 

posted @ 2020-02-09 19:19  天宇轩-王  阅读(924)  评论(0编辑  收藏  举报