栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

spring boot 集成 flowable + mybatisplus冲突解决

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

spring boot 集成 flowable + mybatisplus冲突解决

开发项目使用技术栈spring boot 2 + mybatis-plus + flowable 6.3时, 启动报错,如下:

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:384)

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:/D:/maven/repository/com/baomidou/mybatis-plus-core/3.4.3.4/mybatis-plus-core-3.4.3.4.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:/D:/maven/repository/org/mybatis/mybatis/3.4.5/mybatis-3.4.5.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:/D:/maven/repository/org/mybatis/mybatis/3.4.5/mybatis-3.4.5.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

仔细查看问题描述,一直没搞懂mybatis 怎么引入的,后来才发现flowable是也会引入 mybatis,导致jar冲突。

找到问题所在,解决起来就简单了:

在pom.xml 中,引入 flowable  时,排除 mybatis 的部分即可。


   org.flowable
   flowable-spring-boot-starter
   6.3.0
   
      
         org.mybatis
         mybatis
      
   

 文章借鉴:spring boot 集成 flowable 时mybatis-plus-core-3.1.2.jar 冲突 - 赵晓欣的个人空间 - OSCHINA - 中文开源技术交流社区

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/697051.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号