Correct the classpath of your application so that it contains a single, compatible version oforg.spr
项目场景:
新建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相关推荐
- 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 包名 ...
- 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 ...
- springboot整合flyway出现Correct the classpath of your application so that it contains a single,compatibl
springboot整合flyway出现异常具体如下 *************************** APPLICATION FAILED TO START ***************** ...
- Correct the classpath of your application so that it contains compatible versions of the classes com
大家好,我是雄雄,欢迎关注微信公众号雄雄的小课堂 在使用springboot集成camunda卡蒙达工作流引擎时报错,报错信息如下: Description: An attempt was made ...
- Spring Boot项目无法找到getMediaTypeMappings()方法
记录一次踩坑的解决.报错 如下 Description:An attempt was made to call a method that does not exist. The attempt wa ...
- 【ruoyi若依】引入activiti 模块
目录 前言 1.报错:[org/springframework/security/config/annotation/authentication/configurers/GlobalAuthenti ...
- 好机会,我要帮女同事解决Maven冲突问题
任何一个故事起因最重要 任何一个职业,女生都有绝对的优势.更别提 IT 行业了,在部门中要是有女程序猿那肯定是香饽饽,备受呵护呀. 之前有一次,一位刚来的妹子遇到问题了,画风顿时就变成上面的图片了,群 ...
- Swagger3、SpringBoot学习、使用复盘
遇到的错误 spring-plugin-core报错 Description:An attempt was made to call the method org.springframework.pl ...
- 整合rocketmq/stream-rocketmq启动报错channel.AbstractMessageChannel问题
springboot整合rocketmq/stream-rocketmq启动报错 spring boot.springcloud.springcloud alibaba项目整合rocketmq时.一启 ...
- springcloud-eureka启动报错,提示The following method did not exist: org.springframework.boot.actuate.health
报错信息汇总 文章目录 报错信息汇总 1.springcloud-eureka启动报错,提示The following method did not exist: org.springframewor ...
最新文章
- 基于TensorRT 3的自动驾驶快速INT8推理
- 【运筹学】线性规划数学模型 ( 单纯形法 | 第二次迭代 | 方程组同解变换 | 生成新单纯形表 | 计算检验数 | 最优解判定 | 线性规划解个数分析 )
- dos 删除文件夹 rd
- 监控 DNS 流量,预防安全隐患五大招!
- Redis 的 4 大法宝,2018 必学中间件
- 螺旋测微器 flash_使用测微计收集应用程序指标
- SpringCloud 入门教程(一): 服务注册
- Spring : SpringBootConfiguration 注解
- 剑指offer——面试题32:从1到n整数中1出现的次数
- threejs添加天空盒
- 信号与系统学习难点(一)群时延与相频特性
- CentOS 7 部署开源sip信令服务器 —— 筑梦之路
- LGTM,XGBOOST,LIGHTGBM
- 【时间之外】面向监狱的编程?该学学网络安全法了(3)
- 直播美颜sdk免费版有吗?为什么美颜sdk没有免费版?
- JSP——连接数据库、编写api接口
- [书目20141024]王正良硬笔书法教学
- 【陈工笔记】【复盘】# 计算机常规快捷键-专业选手必备 #
- 10年跳槽7次,过来人告诉你有效跳槽和无效跳槽的区别
- 计算机有关的基础知识,计算机基础知识之计算机中有关数及编码的知识