Mybatis-plus与Mybatis依赖冲突问题解决(An attempt was made to call a method that does not exist.)

成功解决:Correct the classpath of your application so that it contains a single, compatible version of 包 IDEA启动项目时报错Correct the classpath of your application so that it contains a single, compatible version of com.baomidou.mybatisplus.core.MybatisConfiguration 报错内容如下: 2020-07-29 21:31:16.891 ERROR 12488 — [main] o.s.b.d.LoggingFailureAnalysisReporter : APPLIC 阅读详情
AI摘要

在SpringBoot项目中遇到MybatisPlus与Mybatis版本不匹配导致的方法不存在错误。通过查看错误信息,发现在`com.baomidou.mybatisplus.core.MybatisMapperAnnotationBuilder`中尝试调用`com.baomidou.mybatisplus.core.MybatisConfiguration`的`getLanguageDriver`方法失败。为了解决这个问题,更新了mybatis-plus-boot-starter版本,并排除Mybatis依赖,手动引入了Mybatis的最新版本3.5.6,从而成功解决了冲突。

今天碰见一个版本冲突问题具体冲突如下:

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:

当时的spirngboot版本和mybatis版本如下:(这是修改以后又重新指定了一下mybatis的版本指定为最新版本的了。)

	<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.3.7.RELEASE</version>
        <relativePath/>
    </parent>
    <!--定义版本-->
    <properties>
      <mybatis.plus.starter.version>3.1.1</mybatis.plus.starter.version>
    </properties>
            <!--解决myabatis版本冲突问题-->
            <dependency>
                <groupId>com.baomidou</groupId>
                <artifactId>mybatis-plus-boot-starter</artifactId>
                <version>${mybatis.plus.starter.version}</version>
            </dependency>

出现问题得图片,有个位置点进去

在这里插入图片描述
在这里插入图片描述
是这个方法找不到,然后我就添加了如下配置:(最后解决问题)

<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.3.7.RELEASE</version>
        <relativePath/>
    </parent>

    <!--定义版本-->
    <properties>
      <mybatis.plus.starter.version>3.1.1</mybatis.plus.starter.version>
    </properties>

 
            <!--解决myabatis版本冲突问题-->
            <dependency>
                <groupId>com.baomidou</groupId>
                <artifactId>mybatis-plus-boot-starter</artifactId>
                <version>${mybatis.plus.starter.version}</version>
                <exclusions>
                    <exclusion>
                        <artifactId>mybatis</artifactId>
                        <groupId>org.mybatis</groupId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.mybatis</groupId>
                <artifactId>mybatis</artifactId>
                <version>3.5.6</version>
            </dependency>

参考地址:https://blog.youkuaiyun.com/Octopus21/article/details/114879758

maven下mybatis-plus和pagehelp冲突问题的解决方法 主要介绍了maven下mybatis-plus和pagehelp冲突的解决方法,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友可以参考下 立即下载

相关推荐

电动汽车整车控制器 UDS诊断功能开发调试优化方法

摘要:通过某电动汽车VCU开发过程中,UDS诊断功能的调试,发现一些测试中存在的问题,比如覆盖度不够、效率低下等,提出了相应的优化方法,并经过测试验证其可行性,此方法亦可推广应用至BMS、HCM等其他控制器的UDS诊断开发调试过程中。希望能给相关技术人员带来参考和帮助。

qq_43011586的博客 2142

Mybatis-plus与Mybatis依赖冲突问题解决

SpringBoot版本升级后MyBatis-Plus启动失败错误,经过定位分析确认为MyBatis版本和MyBatis-plus不匹配,其中特定的一个方法在当前的版本找不到

发现问题,面对问题,分析问题,解决问题,总结问题 1万+

STM32 上 FreeRTOS 的启动与任务调度详解

4. SysTick定时器:FreeRTOS启动调度器后,会接管STM32的SysTick定时器,用于生成系统节拍,因此不要在HAL库中重复配置SysTick(比如HAL_Init()中已配置,无需再手动调用SysTick_Config()),否则会导致系统节拍异常,任务延迟不准。2. 任务栈大小需按需配置,不是越大越好(浪费RAM),也不能太小(会导致栈溢出),比如简单的传感器读取任务,1024字(4096字节)足够,复杂任务(比如串口接收+数据解析)可调整为2048字。

qq_40170041的博客 866

MyBatis-plus使用时与MyBatis冲突?

mp、mb

瓜大师的博客 6035

从零到一:ASTER L2数据获取的实战避坑指南

本文提供了一份详细的ASTER L2数据获取实战指南,涵盖账号注册、环境配置、数据检索、下载故障排除及后处理等关键步骤。特别针对NASA EarthData平台的隐形门槛和常见陷阱,给出了实用解决方案,帮助科研新手高效获取地表温度数据,适用于环境监测和城市热岛效应分析等领域。

weixin_29061425的博客 517

在 RAP 中把业务对象“搬到网口上”:service definition 与 service binding 的全流程、范式与实战

本文解析了SAP ABAP开发中service definition和service binding的关键作用。service definition负责选择要暴露的CDS实体和行为,形成服务模型;而service binding则将服务绑定到具体协议(如OData),生成可访问的端点。两者分离带来三大优势:支持同一模型多重发布、降低环境迁移耦合度、强化安全治理。文章通过预订业务对象的端到端示例,展示了如何从CDS建模到生成Fiori Elements预览。最后以售后工单业务为例,说明这种架构如何支持内外服务

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 390

mybatis-plus使用中遇到的问题

mybatis-plus使用中遇到的问题 mapper配置问题 mybatis-plus与mybatis冲突 mybatis-plus与pagehelper冲突 最近新搭一个测试项目,使用了 mybatis-plus当前的最新版本 3.3.1,之后遇到了一系列问题,特整理一下。 mapper配置问题 报错: Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of t

bhegi_seg的博客 2581

YOLOv11涨点改进 | 全网独家创新,损失函数改进篇 | TGRS 2025 | 引入AdaFocalLoss损失函数,改进小目标检测,自适应聚焦小目标与样本分布不平衡,提升检测精度与训练稳定性

本文提出了一种改进YOLOv11模型的AdaFocalLoss损失函数,通过动态调节机制有效提升小目标检测性能。AdaFocalLoss融合了目标尺寸感知和IoU引导的自适应调节,解决了传统损失函数在小目标检测中的样本不平衡问题。该方法自动调整训练权重,无需手动调参,显著提升了模型在多尺度目标、复杂背景下的检测精度和训练稳定性。实验表明,AdaFocalLoss能更好地平衡不同尺度目标的梯度分布,改善边界完整性,减少误检漏检。文章详细介绍了算法原理、实现代码和在YOLOv11中的集成方法,为提升目标检测性能

Ai缝合怪、助力小伙伴高效发论文 335

mybatis-plus 集成activiti 异常问题

问题原因: Description: An attempt was made to call the method com.baomidou.mybatisplus.core.MybatisConfiguration.getLanguageDriver(Ljava/lang/Class;)Lorg/apache/ibatis/scripting/LanguageDriver; but it does not exist. Its class, com.baomidou.mybatisplus.core.

weixin_45876619的博客 868

在Android中实现SIM卡的读写操作

在上述代码中,我们创建了一个PhoneStateListener的实例,并重写了onSimStateChanged方法来处理SIM卡状态改变的事件。然后,我们通过调用telephonyManager的listen方法注册了这个监听器,并指定了要监听的事件类型为SIM卡状态的改变。在上述代码中,我们调用telephonyManager的sendUssdRequest方法来发送USSD命令,并通过TelephonyManager.UssdResponseCallback来处理USSD响应和发送失败的情况。

2301_79326510的博客 923

Burpsuite 使用教程

Burpsuite 使用教程

xiongIT的博客 8197

spring boot 集成 flowable + mybatisplus冲突解决

flowable + mybatisplus冲突解决

Chenchengquan213的博客 4723

Objective-C实现人工势场法(附完整源码)

Objective-C实现人工势场法(附完整源码)

希望我的博客,能帮上你解决学习中工作中所遇到的问题 426

关于mybatis-plus和mybatis依赖冲突

关于mybatis和mybatisplus依赖冲突

qq_44835418的博客 820

Devexpress16.2.6破解工具

Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具

汉书HE8,好用的汇编代码编写工具

汉书HE8,好用的汇编代码编写工具早期编写汇编代码所用功能强大

Mybatis和Mybatis-plus依赖冲突解决

原因是pom文件里面有两个依赖</</</</</</</</网上搜了下大致有几种解决方式,但是都解决不了1:把org.mybatis.spring.boot注释掉,重新刷新maven依赖2:调整mybatis和mybatis-plus的版本,如上图是我找到的能匹配的版本号3:父模块或者别的模块的mybatis版本已经存在并且相互引用,自己选择性删除。

Summer9977的博客 1601

ET2012新版免狗免安装绿色软件

ET2012新版免狗免安祖昂绿色软件。,新界面,新视觉,

Mybatis与Mybatis-plus的冲突

说明Mybatis与Mybatis-plus的冲突,提供解决方法。

weixin_45866737的博客 3421

IEM模型,地表粗糙度模拟

利用微波反演土壤水分时候,利用IEM模型可以实现对随机地表的模拟

method did not exist: com.baomidou.MybatisMapperAnnotationBuilder.getLanguageDriver

包冲突,缺少耐心和对英文的理解能力。 该方法的类com.baomidou.mybatisplus.core.MybatisConfiguration可从以下位置获得: mybatis-3.5.0.jar mybatis-plus-core-3.3.1.jar "C:\Program Files\Java\jdk1.8.0_131\bin\java.exe" -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:49873,suspend=y,server

qq_42664961的博客 2007

mybatis-plus3.2.0与pagehelper依赖

<dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.2.0</version> <exclusions> <exclusio...

zelentre的博客 1695

解决mybatis 更换为 mybatis-plus 以及冲突解决 mybatis和mybatis-plus共存

之前项目里面有mybatis,由于系统已经开发完成,后面开发想用mybatis-plus, 加了plus maven后就一直报错,以下就是自己的解决方法 一 :  删除原有依赖 <!--Mybatis--> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-bo.

x1778161229的博客 8099

Mybatis-plus和mybatis mybatis-spring版本冲突导致ClassNotFoundException: LoggerFactory及自定义sqlSessionTemplate

Mybatis-plus和pagehelper引入的mybatis、mybatis-spring版本冲突导致ClassNotFoundException:org.mybatis.logging.LoggerFactory及自定义sqlSessionTemplate

weixin_38986463的博客 3370

mybatis和mybatisPlus中解决实体类字段与数据库关键字冲突问题

由于数据库表字段名称设计不合理,导致与MySQL数据库关键字或者预留关键字一致,在这种情况下,将会导致数据插入不成功。直接在实体类上添加 @TableField 注解,给上别名加上反单引号即可。( 反单引号在 键盘Esc键下面的那个,注意切换英文输入法 ) 引起来。1、针对XML文件,可以在冲突的字段名添加。

weixin_46483006的博客 9685

The attempt was made from the following location: com.baomidou.mybatisplus

*************************** APPLICATION FAILED TO START *************************** Description: An attempt was made to call a method that does not exist. The attempt was made from the following loc...

wb15374515921的博客 4150

Springboo引入Activity 和mybatis-plus 报错

错误信息如下: Caused by: java.lang.NoSuchMethodError: com.baomidou.mybatisplus.core.MybatisConfiguration.getLanguageDriver(Ljava/lang/Class;)Lorg/apache/ibatis/scripting/LanguageDriver; at com.baomidou.m...

chenxue843400447的博客 2328

An attempt was made to call the method com.baomidou.mybatisplus.core.MybatisConfiguration.getLangu

An attempt was made to call the method com.baomidou.mybatisplus.core.MybatisConfiguration.getLanguageDriver(Ljava/lang/Class;) Lorg/apache/ibatis/scripting/LanguageDriver; but it does not exist. ...

lyhyrc的博客 7853

mybatis-plus使用报错:

将baomidou中的mybatis去掉,重新引入 <!--mybatis--> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.1.0</version>

u012497072的博客 974
上一篇: mybatis-generator自动生成代码各种测试完善中~~~~
下一篇: SpringBoot+Cloud+oauth2.0+JWT集成swagger及swagger-bootstrap-ui详细步骤
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值