MyBatis-Plus启动报错

报错如下:

Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

    com.github.jeffreyning.mybatisplus.base.UpdateByMultiIdMethod.injectMappedStatement(UpdateByMultiIdMethod.java:67)

The following method did not exist:

    com.github.jeffreyning.mybatisplus.base.UpdateByMultiIdMethod.optlockVersion(Lcom/baomidou/mybatisplus/core/metadata/TableInfo;)Ljava/lang/String;

The method's class, com.github.jeffreyning.mybatisplus.base.UpdateByMultiIdMethod, is available from the following locations:

    jar:file:/D:/Soft/Environment/repository/com/github/jeffreyning/mybatisplus-plus/1.5.0-RELEASE/mybatisplus-plus-1.5.0-RELEASE.jar!/com/github/jeffreyning/mybatisplus/base/UpdateByMultiIdMethod.class

The class hierarchy was loaded from the following locations:

    com.github.jeffreyning.mybatisplus.base.UpdateByMultiIdMethod: file:/D:/Soft/Environment/repository/com/github/jeffreyning/mybatisplus-plus/1.5.0-RELEASE/mybatisplus-plus-1.5.0-RELEASE.jar
    com.baomidou.mybatisplus.core.injector.AbstractMethod: file:/D:/Soft/Environment/repository/com/baomidou/mybatis-plus-core/3.2.0/mybatis-plus-core-3.2.0.jar


Action:

Correct the classpath of your application so that it contains a single, compatible version of com.github.jeffreyning.mybatisplus.base.UpdateByMultiIdMethod


进程已结束,退出代码为 1

尝试了查看pom中依赖问题,也已经修改了,但还是报这个错。
自己使用的这两个包的版本会发生冲突

 			<dependency>
               <groupId>com.baomidou</groupId>
               <artifactId>mybatis-plus-boot-starter</artifactId>
               <version>3.2.0</version>
           </dependency>
            <dependency>
               <groupId>com.github.jeffreyning</groupId>
               <artifactId>mybatisplus-plus</artifactId>
               <version>1.5.0-RELEASE</version>
           </dependency>

将mybatis-plus-boot-starter包的版本修改为3.1.0后项目可以起起来了

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值