您现在的位置是: 首页 > 后端开发 springboot引入mybatis-plus后出现ClassNotFoundException: org.mybatis.logging.LoggerFactory
springboot引入mybatis-plus后出现ClassNotFoundException: org.mybatis.logging.LoggerFactory
2020-05-21 【后端开发】 5602人已围观 9351次浏览
简介springboot引入mybatis-plus后出现ClassNotFoundException: org.mybatis.logging.LoggerFactory
由于之前是使用的 mybatis 和分页 pagehelper ,但是和 mybatis-plus 冲突,只需要注释或删掉这两个包即可
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.3.1</version>
</dependency>
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.2.3</version>
</dependency>
单独使用 mybatis-plus 包即可解决
<!-- MyBatis-Plus -->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.3.1.tmp</version>
</dependency>
分页就使用 MyBatis-Plus 自带的分页 IPage 即可
很赞哦! (0)
相关文章
- PHP 中list()出现Undefined offset: 0错误
- SpringBoot 定时任务 多线程
- 删除Git仓库所有历史提交记录,成为一个干净的仓库
- SpringBoot @NotBlank 不生效问题
- SqlServer 查询包含指定字段的存储过程
- 类 BASE64Decoder 程序包 sun.misc 找不到符号
- SqlServer 刷新所有视图
- start.spring.io访问太慢,构建SpringBoot项目失败
- Laravel Dingo/api 出现 The version given was unknown or has no registered routes.报错
- SqlServer字符串处理
点击排行
- Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR DISABLE You can't write or read against a disable instance
- Debian apt 使用国内镜像
- RocketMQ 出现 sendDefaultImpl call timeout 问题
- 类 BASE64Decoder 程序包 sun.misc 找不到符号
- SpringBoot @NotBlank 不生效问题
- 记一次 Mybatis-Plus 自动填充无效问题解决
- SpringBoot 2.x 文件上传出现 The field file exceeds its maximum permitted size of 1048576 bytes
- nuxt 项目完整部署方案
站长推荐
猜你喜欢
- SpringBoot 集成 Elasticsearch 7.8.1 出现错误 Factory method 'elasticsearchRestHighLevelClient' threw exception; nested exception is java.lang.NoSuchFieldError: IGNORE_DEPRECATIONS
- Laravel Dingo/api 出现 The version given was unknown or has no registered routes.报错
- SqlServer字符串处理
- nginx 出现 the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in 错误解决方案
- Linux 常用命令 持续更新中...
- ElasticSearch安装踩坑指南
- Zookeeper 找不到或无法加载主类 org.apache.zookeeper.server.quorum.QuorumPeerMain
- 【代码片段】MySQL新建表添加基础字段
- SpringBoot 定时任务 多线程
- Android SDK版本号与API级别的对照表