当前位置:网站首页>Correct the classpath of your application so that it contains compatible versions of the classes com
Correct the classpath of your application so that it contains compatible versions of the classes com
2022-07-26 20:36:00 【Mu Xiongxiong】
Hello everyone , I'm Xiong Xiong , Welcome to WeChat official account. Xiongxiong's small class
In the use of springboot Integrate camunda Kamonda workflow engine reports an error , The error information is as follows :
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
com.baomidou.mybatisplus.core.MybatisMapperAnnotationBuilder.getLanguageDriver(MybatisMapperAnnotationBuilder.java:385)
The following method did not exist:
org.apache.ibatis.session.Configuration.getLanguageDriver(Ljava/lang/Class;)Lorg/apache/ibatis/scripting/LanguageDriver;
The calling method’s class, com.baomidou.mybatisplus.core.MybatisMapperAnnotationBuilder, was loaded from the following location:
jar:file:/G:/repository/com/baomidou/mybatis-plus-core/3.5.1/mybatis-plus-core-3.5.1.jar!/com/baomidou/mybatisplus/core/MybatisMapperAnnotationBuilder.class
The called method’s class, org.apache.ibatis.session.Configuration, is available from the following locations:
jar:file:/G:/repository/org/mybatis/mybatis/3.4.4/mybatis-3.4.4.jar!/org/apache/ibatis/session/Configuration.class
The called method’s class hierarchy was loaded from the following locations:
org.apache.ibatis.session.Configuration: file:/G:/repository/org/mybatis/mybatis/3.4.4/mybatis-3.4.4.jar
Action:
Correct the classpath of your application so that it contains compatible versions of the classes com.baomidou.mybatisplus.core.MybatisMapperAnnotationBuilder and org.apache.ibatis.session.Configuration
resolvent
The reason for this error is that I have introduced mybatis Rely on the , and camunda I also brought it inside mybatis, So we only need to introduce camunda Rule out mybatis that will do .
Original code :
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter</artifactId>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId>
<version>3.4.0</version>
</dependency>
The solved code :
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter</artifactId>
<exclusions>
<exclusion>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
</exclusion>
</exclusions>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
<exclusions>
<exclusion>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
</exclusion>
</exclusions>
<version>3.4.0</version>
</dependency>
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId>
<exclusions>
<exclusion>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
</exclusion>
</exclusions>
<version>3.4.0</version>
</dependency>
Refresh maven Dependence can solve the problem .
边栏推荐
- How to assemble a registry?
- 小场景带来大提升!百度飞桨EasyDL助力制造业流水线AI升级
- BUU刷题记-网鼎杯专栏2
- 20220726
- 打字比赛圆满结束!
- Easycvr device management list page, paging data does not display problem repair
- 使用百度飞桨 EasyDL 完成垃圾分类
- Principle and application of one click login of local number (glory Collection Edition)
- 剑指offer46把数字翻译成字符串
- Message queue -- the problem introduced: repeated consumption & sequential consumption & distributed transactions
猜你喜欢

BGP的基本配置和聚合

Leetcode-300 longest increasing subsequence

Principle and application of one click login of local number (glory Collection Edition)

数字化工厂的优势有哪些

81.(cesium之家)cesium修改灰色背景(默认蓝色)

MPLS multi protocol label switching technology

Task 1 report

Experiment 5 OSPF comprehensive experiment

易基因|宏病毒组测序技术介绍

消息队列知识点总结
随机推荐
opencv dnn部署onnx模型
Nmap installation and use
Kotlin - 协程构建器 CoroutineBuilder
BGP -- Border Gateway Protocol
ES6 method & Class array into real array & method of judging array
Exchange 2010 SSL证书安装文档
BUU刷题记4
【刷题记录】22. 括号生成
CentOS7关于Oracle RAC 11GR2部署磁盘分区问题
全球最聪明50家公司公布:中国厂商占据近半,华为名列第一
[pyqt5 basic control usage analysis]
smoothscroll-polyfill插件的用法
如何优雅地赞美他人?不妨尝试下这几种方式
BGP的路由黑洞和防环
第二章:遇到阻难!绕过WAF过滤!【SQL注入攻击】
执行上下文与词法环境
tkinter使用wpf控件
Correct the classpath of your application so that it contains compatible versions of the classes com
LCP 11. 期望个数统计
QT signal and slot connection (loose coupling)