mybatis plus整合flowable jar包冲突
mybatis plus整合flowable jar包冲突
Last edited 2023-6-15
type
Post
status
Published
date
Jun 15, 2023
slug
mybatis_1
summary
mybatis plus整合flowable报 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:386)
tags
mybatis
flowable
category
技术分享
icon
password
mybatis plus整合flowable之后,发现项目启动不了,报这个:
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:386) 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:/apache-maven-3.8.6-bin/apache-maven-3.8.6/rep/com/baomidou/mybatis-plus-core/3.4.2/mybatis-plus-core-3.4.2.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:/apache-maven-3.8.6-bin/apache-maven-3.8.6/rep/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:/apache-maven-3.8.6-bin/apache-maven-3.8.6/rep/org/mybatis/mybatis/3.4.5/mybatis-3.4.5.jar
通过查找得知mybatis plus和flowable都引入了mybatis ,导致两者冲突了,只需要去掉flowable中的mybatis就可以正常启动了
<dependency> <groupId>org.flowable</groupId> <artifactId>flowable-spring-boot-starter</artifactId> <version>6.3.0</version> <exclusions> <exclusion> <artifactId>mybatis</artifactId> <groupId>org.mybatis</groupId> </exclusion> </exclusions> </dependency>
 
参考文章:
  • mybatis
  • flowable
  • freemarker生成word模板Failed to start bean 'documentationPluginsBootstrapper’
    Catalog