springcloud整合gateway网关

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-05-13 15:43:28.840 ERROR 6576 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
APPLICATION FAILED TO START
***************************

Description:

Spring MVC found on classpath, which is incompatible with Spring Cloud Gateway.

Action:

Please set spring.main.web-application-type=reactive or remove spring-boot-starter-web dependency.

通过报错信息分析:
Please set spring.main.web-application-type=reactive or remove spring-boot-starter-web dependency.
这句话说明了问题。

在使用gateway的时候不能导入web依赖

Logo

云原生社区为您提供最前沿的新闻资讯和知识内容

更多推荐