`

Spring Boot 2.1 +mybatisPlus3.1.2+activiti6整合

阅读更多

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

 

The following method did not exist:

 

    com.baomidou.mybatisplus.core.MybatisConfiguration.getLanguageDriver(Ljava/lang/Class;)Lorg/apache/ibatis/scripting/LanguageDriver;

 

The method's class, com.baomidou.mybatisplus.core.MybatisConfiguration, is available from the following locations:

 

    jar:file:/D:/m2/.m2/repository/com/baomidou/mybatis-plus-core/3.1.2/mybatis-plus-core-3.1.2.jar!/com/baomidou/mybatisplus/core/MybatisConfiguration.class

 

It was loaded from the following location:

 

    file:/D:/m2/.m2/repository/com/baomidou/mybatis-plus-core/3.1.2/mybatis-plus-core-3.1.2.jar

 

 

Action:

 

Correct the classpath of your application so that it contains a single, compatible version of com.baomidou.mybatisplus.core.MybatisConfiguration

 

Disconnected from the target VM, address: '127.0.0.1:50948', transport: 'socket'

 

Process finished with exit code 1

 

 

--------------------------------------------------------------------------------
解决方法:

pom.xml配置如下:

<dependency>
   <groupId>org.activiti</groupId>
   <artifactId>activiti-spring-boot-starter-basic</artifactId>
   <version>6.0.0</version>
   <exclusions>
      <exclusion>
         <groupId>org.mybatis</groupId>
         <artifactId>mybatis</artifactId>
      </exclusion>
   </exclusions>
</dependency>

application.yml配置文件如下:

spring:
    activiti:
        check-process-definitions: false
        database-schema-update: true

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics