您现在的位置是: 首页 > 后端开发 springboot引入mybatis-plus后出现ClassNotFoundException: org.mybatis.logging.LoggerFactory
springboot引入mybatis-plus后出现ClassNotFoundException: org.mybatis.logging.LoggerFactory
2020-05-21 【后端开发】 4962人已围观 8148次浏览
简介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)
相关文章
- SpringBoot @NotBlank 不生效问题
- SpringBoot 2.x 文件上传出现 The field file exceeds its maximum permitted size of 1048576 bytes
- PHP 在执行 composer install 时出现提示 PHP Fatal error: Allowed memory size of XXXXXX bytes exhausted <...>
- mac idea spring boot 启动慢
- Laravel项目出现could not be opened: failed to open stream: Permission denied
- 记一次Java MessageFormat.format踩坑
- SpringBoot 2.x Security security.basic.enabled=false 失效问题解决
- 记一次 Mybatis-Plus 自动填充无效问题解决
- Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR DISABLE You can't write or read against a disable instance
- 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 项目完整部署方案
站长推荐
猜你喜欢
- python scrapy 出现 DEBUG: Filtered offsite request to 错误
- Docker 批量操作命令
- Vue 报错 Avoid using non-primitive value as key, use string/number value instead
- PHP 在执行 composer install 时出现提示 PHP Fatal error: Allowed memory size of XXXXXX bytes exhausted <...>
- Windows CMD 常用命令
- 获取阿里云CDN真实IP
- npm 出现 Unexpected token < in JSON at position 21330
- 查看MySQL默认读取的配置文件
- sentinel directive while not in sentinel mode 问题解决
- win10 cmder Debian 安装配置 oh-my-zsh