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

Posted Roninaxious

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Spring MVC found on classpath, which is incompatible with Spring Cloud Gateway.相关的知识,希望对你有一定的参考价值。

由于引入了web依赖,而没有编写controller层相关接口,所以会报错

🍀解决方法
🏵将spring-boot-starter-web依赖去掉即可🏵

以上是关于Spring MVC found on classpath, which is incompatible with Spring Cloud Gateway.的主要内容,如果未能解决你的问题,请参考以下文章

javaEE Web项目 Spring 的国际化异常 No message found

spring,property not found on type

Found multiple occurrences of org.json.JSONObject on the class path:

Spring MVC PageNotFound.noHandlerFound No mapping found for HTTP request with URI

Spring MVC jsp 文件直接当作 HTML 输出,未被解析

Thymeleaf with Spring MVC error No mapping found for HTTP request with URI