项目场景:

新建spingboot项目启动报错


问题描述:

报错信息

Description:An attempt was made to call a method that does not exist. The attempt was made from the following location:org.springframework.boot.autoconfigure.http.HttpMessageConverters.configurePartConverters(HttpMessageConverters.java:140)The following method did not exist:org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter.getPartConverters()Ljava/util/List;The method's class, org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter, is available from the following locations:jar:file:/E:/apache-maven-3.6.3/repository/org/springframework/spring-web/5.2.9.RELEASE/spring-web-5.2.9.RELEASE.jar!/org/springframeworktp/converter/support/AllEncompassingFormHttpMessageConverter.classThe class hierarchy was loaded from the following locations:org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverter: file:/E:/apache-maven-3.6.3/repository/org/springframework/spring-web/5.2.9.RELEASE/spring-web-5.2.9.RELEASE.jarorg.springframework.http.converter.FormHttpMessageConverter: file:/E:/apache-maven-3.6.3/repository/org/springframework/spring-web/5.2.9.RELEASE/spring-web-5.2.9.RELEASE.jarAction:Correct the classpath of your application so that it contains a single, compatible version of org.springframework.http.converter.support.AllEncompassingFormHttpMessageConverterProcess finished with exit code 1

原因分析:

maven依赖导错

  • 错误的依赖
     <dependency><groupId>org.springframework</groupId><artifactId>spring-web</artifactId></dependency>
  • 正确的依赖
      <dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency>

解决方案:

此错误多为 版本错误,依赖错误。 请仔细检查依赖名和版本

Correct the classpath of your application so that it contains a single, compatible version oforg.spr相关推荐

  1. Correct the classpath of your application so that it contains a single, compatible version of 包名

    ** Correct the classpath of your application so that it contains a single, compatible version of 包名 ...

  2. SpringBoot错误-Correct the classpath of your application so that it contains a single, compatible vers

    报错内容: Correct the classpath of your application so that it contains a single, compatible version of ...

  3. springboot整合flyway出现Correct the classpath of your application so that it contains a single,compatibl

    springboot整合flyway出现异常具体如下 *************************** APPLICATION FAILED TO START ***************** ...

  4. Correct the classpath of your application so that it contains compatible versions of the classes com

    大家好,我是雄雄,欢迎关注微信公众号雄雄的小课堂 在使用springboot集成camunda卡蒙达工作流引擎时报错,报错信息如下: Description: An attempt was made ...

  5. Spring Boot项目无法找到getMediaTypeMappings()方法

    记录一次踩坑的解决.报错 如下 Description:An attempt was made to call a method that does not exist. The attempt wa ...

  6. 【ruoyi若依】引入activiti 模块

    目录 前言 1.报错:[org/springframework/security/config/annotation/authentication/configurers/GlobalAuthenti ...

  7. 好机会,我要帮女同事解决Maven冲突问题

    任何一个故事起因最重要 任何一个职业,女生都有绝对的优势.更别提 IT 行业了,在部门中要是有女程序猿那肯定是香饽饽,备受呵护呀. 之前有一次,一位刚来的妹子遇到问题了,画风顿时就变成上面的图片了,群 ...

  8. Swagger3、SpringBoot学习、使用复盘

    遇到的错误 spring-plugin-core报错 Description:An attempt was made to call the method org.springframework.pl ...

  9. 整合rocketmq/stream-rocketmq启动报错channel.AbstractMessageChannel问题

    springboot整合rocketmq/stream-rocketmq启动报错 spring boot.springcloud.springcloud alibaba项目整合rocketmq时.一启 ...

  10. springcloud-eureka启动报错,提示The following method did not exist: org.springframework.boot.actuate.health

    报错信息汇总 文章目录 报错信息汇总 1.springcloud-eureka启动报错,提示The following method did not exist: org.springframewor ...

最新文章

  1. 基于TensorRT 3的自动驾驶快速INT8推理
  2. 【运筹学】线性规划数学模型 ( 单纯形法 | 第二次迭代 | 方程组同解变换 | 生成新单纯形表 | 计算检验数 | 最优解判定 | 线性规划解个数分析 )
  3. dos 删除文件夹 rd
  4. 监控 DNS 流量,预防安全隐患五大招!
  5. Redis 的 4 大法宝,2018 必学中间件
  6. 螺旋测微器 flash_使用测微计收集应用程序指标
  7. SpringCloud 入门教程(一): 服务注册
  8. Spring : SpringBootConfiguration 注解
  9. 剑指offer——面试题32:从1到n整数中1出现的次数
  10. threejs添加天空盒
  11. 信号与系统学习难点(一)群时延与相频特性
  12. CentOS 7 部署开源sip信令服务器 —— 筑梦之路
  13. LGTM,XGBOOST,LIGHTGBM
  14. 【时间之外】面向监狱的编程?该学学网络安全法了(3)
  15. 直播美颜sdk免费版有吗?为什么美颜sdk没有免费版?
  16. JSP——连接数据库、编写api接口
  17. [书目20141024]王正良硬笔书法教学
  18. 【陈工笔记】【复盘】# 计算机常规快捷键-专业选手必备 #
  19. 10年跳槽7次,过来人告诉你有效跳槽和无效跳槽的区别
  20. 计算机有关的基础知识,计算机基础知识之计算机中有关数及编码的知识

热门文章

  1. 计算机专业职业适应性考试包括什么内容,2020年分类招生《职业适应性测试(职业技能测试)》大纲...
  2. imx6ul mqs 音频爆破音
  3. 小爬虫爬起点中文网收藏榜
  4. 你想知道的优惠券业务,SkrShop告诉你
  5. Using the Hardware Scaler for Performance and Efficiency
  6. C#-笔记-面向对象-第一章
  7. 民营股份制企业是什么意思
  8. 怎样分析数据致提高产出?(一)
  9. Android 产生ANR后的Trace文件的解析
  10. Codeforces--760B--Frodo and pillows