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

这篇具有很好参考价值的文章主要介绍了Spring MVC found on classpath, which is incompatible with Spring Cloud Gateway错误。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

错误案例

spring mvc found on classpath, which is incompatible with spring cloud gatew,springcloud,springcloud,gateway

 

产生的原因

原因是因为spring cloud gateway 是建立在spring boot 2.x 和 spring webflux基础上的既:gateway 本身已经包含了spring mvc 的功能,正与提示的一样和spring boot 的web starter冲突了

解决方式

找到gateway下面的spring-boot-starter-web依赖,然后将其注释掉

<dependency>
   <groupId>org.springframework.boot</groupId>
   <artifactId>spring-boot-starter-web</artifactId>
</dependency>


 文章来源地址https://www.toymoban.com/news/detail-551734.html

到了这里,关于Spring MVC found on classpath, which is incompatible with Spring Cloud Gateway错误的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • Multiple HTTP implementations were found on the classpath错误的解决方法

    当我们的项目中集成了多个AWS相关Jar包时,有可能就会遇到这个错误: 错误信息: There is an issue with the connector Code: InvalidInput.InvalidConnectorConfiguration Message: The connector configuration is invalid. Message: Multiple HTTP implementations were found on the classpath. To avoid non-deterministic loading implementation

    2024年02月11日
    浏览(34)
  • Swift报错:“‘nil‘ is incompatible with return type ‘User‘”

    上述代码报了一个错误:“\\\'nil\\\' is incompatible with return type \\\'User\\\'”,表示“nil”与返回类型“User”不兼容。 解决方案: 将返回值类型改为Optional类型User? 同理,如果调用getUserById(nil)的时候也会报错:“\\\'nil\\\' is not compatible with expected argument type \\\'Int\\\'” 将参数类型改为Int?即可

    2024年02月09日
    浏览(34)
  • 【flink】报错整理 Could not instantiate the executor. Make sure a planner module is on the classpath

    Flink 版本 1.15.1 scala 版本 2.12 最近在学习 Flink , 在 IDEA 中调试 Flink sql 代码时报错,报错内容如下: 我们项目 pom.xml 文件里面配置了两个解析器,这两个解析器不能同时并存,这里我们去掉 flink-table-planner_2.12 这个即可。 从 Flink 1.15 开始,发行版包含两个规划器: flink-tabl

    2024年02月11日
    浏览(35)
  • Node Sass version 8.0.0 is incompatible with ^4.0.0.

    解决办法:降低node版本,下载对应node版本的npm install sass-loader@版本号 node-sass@版本号 --save-dev

    2024年02月11日
    浏览(55)
  • 【Node Sass version 8.0.0 is incompatible with ^4.0.0.问题解决】

    在微信小程序Vue搭建安装依赖后,重新运行项目出现错误: 此时无法继续运行项目。 观察package.json可以发现版本对应情况: https://www.npmjs.com/package/node-sass 先卸载后安装对应版本。 重新运行后无报错。

    2024年02月11日
    浏览(33)
  • The engine “node“ is incompatible with this module. Expected version

    vue项目用了yarn,yarn install后报错如下: ** ** 执行: 然后yarn install后成功。 在此记录问题,如有需要修改的地方,还请不吝赐教。

    2024年02月12日
    浏览(63)
  • 关于yarn安装时报“node“ is incompatible with this module的解决办法

    在用vue写一个h5页面时,当在用yarn安装时,提示如下错误: The engine “node” is incompatible with this module. Expected version \\\"^14.18.0 || ^16.14.0 || =18. 我是使用命令忽略错误: 然后再安装即可以成功: 安装完之后项目可以正常启动了

    2024年02月10日
    浏览(36)
  • 【vue】Node Sass version 6.0.1 is incompatible with ^4.0.0.

    npm run dev 提示错误:Node Sass version 6.0.1 is incompatible with ^4.0.0. node-sass 版本过高,卸载重装低版本 1、卸载:npm uninstall node-sass 2、安装:npm install node-sass@4.12.0 3、运行:npm run dev 这是网上别人说的方法,实际上未能成功,以下是我的解决办法: npm install sass-loader node-sass --save-

    2024年02月15日
    浏览(35)
  • 解决Error: Node Sass version 8.0.0 is incompatible with ^4.0.0.

    最近升级了node版本,导致与node sass版本不一致,项目编译失败,参照网上把版本都升级一致了,但是还是没有解决问题。 后来参考一位朋友的做法,解决了该问题,具体如下: npm uninstall sass-loader node-sass npm install sass-loader@8.0.2 sass@1.26.5  --save-dev 执行命令的完成后 启动项目

    2024年02月12日
    浏览(33)
  • 已解决The following specifications were found to be incompatible with the existing python installation

    已解决The following specifications were found to be incompatible with the existing python installation 下滑查看解决方法 The following specifications were found to be incompatible with the existing python installation 对于 “The following specifications were found to be incompatible with the existing python installation” 的问题有几种可能

    2024年02月08日
    浏览(29)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包