原文:项目中途引入Mybatis-plus后报错,报错Caused by: java.lang.ClassNotFoundException: org.mybatis.logging.LoggerFactory

一 报错原因 mybatis plus和pagehelper jar包冲突,注释mybatis spring和pagehelper插件即可 lt SpringBoot集成mybatis框架 gt lt lt dependency gt gt lt lt groupId gt org.mybatis.spring.boot lt groupId gt gt lt lt artifactId gt m ...

2022-02-14 17:25 0 877 推荐指数:

查看详情

Caused by: java.lang.ClassNotFoundException: org.mybatis.logging.LoggerFactory

整合mybatis-plus时出现一个问题 原因是 1、可能是mybatis的原因,在导入mybatisplus的同时导入了mybatis的依赖,所以会出现这样的错。 2、可能是版本不匹配。出现一个过低,一个过高的情况。 我这边删除pom中跟pagehelper有关的依赖即可 ...

Tue Jan 11 22:39:00 CST 2022 0 2175
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM