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

 

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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2026 CODEPRJ.COM