分页插件 错误信息com.github.pagehelper.PageHelper cannot be cast to org.apache.ibatis.plugin.Interceptor
2023-09-14 09:14:50 时间
错误信息 :
com.github.pagehelper.PageHelper cannot be cast to org.apache.ibatis.plugin.Interceptor
解决方案 :
pom.xml :
<!-- 分页助手 -->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper</artifactId>
<version>5.1.2</version>
</dependency>
<dependency>
<groupId>com.github.jsqlparser</groupId>
<artifactId>jsqlparser</artifactId>
<version>1.0</version>
</dependency>
sqlMapConfig.xml :
<!-- 注意:分页助手的插件 配置在通用馆mapper之前 -->
<!-- PageHelper5版本配置 -->
<plugins>
<plugin interceptor="com.github.pagehelper.PageInterceptor">
<!-- 指定方言 -->
<!-- <property name="dialect" value="mysql"/>-->
</plugin>
</plugins>
错误信息 :
org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: com.github.pagehelper.PageException: java.lang.ClassNotFoundException: mysql
解决方案 :
把方言注释
相关文章
- Windows下解决github push failed (remote: Permission to userA/XXXX.git denied to userB.) 上传gitHub失败报错
- 把本地仓库工程上传到github上和从gitbu同步工程到本地
- 【学习总结】Git学习-参考廖雪峰老师教程八-使用GitHub
- [Github] Create a GitHub PR Template
- 一个基于Java实现的Github issue图片自动下载工具
- [转]20位活跃在Github上的国内技术大牛
- 什么是Github的元数据metadata以及如何备份github上的数据
- (转载)github简单使用教程
- GitHub入门之一:使用github下载项目 .
- SSM中PageHelper的使用步骤与com.github.pagehelper.PageHelper3系列与5系列的区别
- Jenkins+github配置构建触发器
- [Git & GitHub] Windows安装git和环境变量配置