1.报错:
警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sqlSessionFactory’ defined in class path resource [spring/spring-dao.xml]: Cannot create inner bean ‘com.github.pagehelper.PageInterceptor#569cfc36’ of type [com.github.pagehelper.PageInterceptor] while setting bean property ‘plugins’ with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘com.github.pagehelper.PageInterceptor#569cfc36’ defined in class path resource [spring/spring-dao.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property ‘properties’ threw exception; nested exception is com.github.pagehelper.PageException: java.lang.ClassNotFoundException: mysql

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sqlSessionFactory’ defined in class path resource [spring/spring-dao.xml]: Cannot create inner bean ‘com.github.pagehelper.PageInterceptor#569cfc36’ of type [com.github.pagehelper.PageInterceptor] while setting bean property ‘plugins’ with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘com.github.pagehelper.PageInterceptor#569cfc36’ defined in class path resource [spring/spring-dao.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property ‘properties’ threw exception; nested exception is com.github.pagehelper.PageException: java.lang.ClassNotFoundException: mysql *

  • 这是原本的代码在spring-mybatis.xml

    错误原因:
    1.pom.xml中版本超过5.0,要写成== PageInterceptor ==
    2.diatiec有问题,删掉,在上面加上== value=“mysql” ==

    修改后代码:

分页查询bugannot create inner bean ‘com.github.pagehelper.PageInterceptor#569cfc36‘相关推荐

  1. 分页查询插件PageHelper 5.x版本

    目录 1. jar包依赖 2. mybatis核心文件配置 3. 简简单单分页 1. jar包依赖 <!--分页助手--><dependency><groupId> ...

  2. idea 使用 maven 整合 ssm 框架 实现简单的增、删、改 和 分页查询功能

    详细请参考:   idea 使用 maven 整合 ssm 框架 文章目录 ==效果图== ==准备数据库== ==创建maven项目== ==配置文件== pom.xml jdbc.properti ...

  3. Mybatis Plus 入门 简单的CRUD 使用详解 条件查询 分页查询 DML操作 MP代码生成器

    Mybatis Plus入门 MP是 MybatisPlus,简称MP,是一个 Mybatis 的增强工具,在 Mybatis 的基础上只做增强不做改变.MP为简化开发.提高效率而生. 它已经封装好了 ...

  4. 数据库分页查询PageHelper

    如何使用分页插件 1. 引入分页插件 2. 配置拦截器插件 3. 如何在代码中使用 4. MyBatis 和 Spring 集成示例 5. Spring Boot 待定 使用方法 1. 引入分页插件 ...

  5. 实战 Java 第10天:商品分页查询

    实战 Java 第10天:商品分页查询 前言 一.添加pagehelper相关依赖 二.在 ProductService 类中添加接口 三.在 ProductMapper 类中添加接口 四.增加 sq ...

  6. Mybatis的插件 PageHelper 分页查询使用方法

    Mybatis的一个插件,PageHelper,非常方便mybatis分页查询.国内牛人的一个开源项目,有兴趣的可以去看源码,都有中文注释(ps:某些源码一大堆英文,痛哭流涕!) 在github上仓库 ...

  7. 40.MyBaits懒加载、一二级缓存、模糊查询、分页查询、动态SQL

    MyBaits_Day04 第一节.作业 <!-- 对getAllCateAndGoods做实现--><select id="getAllCateAndGoods" ...

  8. SSM中PageHelper的使用步骤与com.github.pagehelper.PageHelper3系列与5系列的区别

    SSM中PageHelper的使用步骤 一. 在pom.xml导入依赖 <dependency><groupId>com.github.pagehelper</group ...

  9. com.github.pagehelper.PageHelper cannot be cast to org.apache.ibatis.plugin.Interceptor

    使用pagehelper插件时异常       5.0之后的版本使用com.github.pagehelper.PageInterceptor这个类 即改为:         <plugin i ...

最新文章

  1. 2022-2028年中国钢丸行业市场行情监测及未来前景规划报告
  2. Java实现选最远距离的座位_LeetCode算法题-Maximize Distance to Closest Person(Java实现)...
  3. 11.Windows线程切换_线程优先级
  4. 活动目录网域中禁用移动存储(U盘)
  5. 图像处理的交并比(IoU)
  6. linux基础知识个人总结
  7. Programming 2D Games 读书笔记(第二章)
  8. (数据库系统概论|王珊)第十章数据库恢复技术-第三节:故障种类
  9. float,absolute脱离文档流的总结
  10. Salesforce 超越 Oracle:四十年的甲骨文和二十岁的SaaS之王
  11. ser crt linux 乱码,大师为你解决securecrt中文乱码【处理指南】
  12. [J2ME QA]untrusted domain is not configured问题回应
  13. CSDN蒋涛:从人才培养和地缘优势入手,助力软件名城发展
  14. Windows环境与Linux环境条件宏
  15. B 站监控系统的框架、演进与展望
  16. android 5.1 内核版本号,最新的安卓5.1.1 ROOT教程(不需要刷第三方内核)
  17. 逆水寒服务器维护公告,逆水寒1月3日更新了什么 逆水寒1月3日更新维护公告
  18. 海思Hi3519AV100 emmc flash方式 linux系统移植 hitool工具烧写
  19. github清华大学计算机系课程攻略,GitHub 项目推荐|清华大学计算机系课程相关资源集合|内容丰富...
  20. 数仓建模—主数据管理

热门文章

  1. 2021百度网盘无限扩容工具,100t无限扩容方法是真的吗?
  2. 3.3V单片机与5V器件通信解决方案(串口、IIC、SPI)
  3. 虚拟机打开版本版本不兼容和虚拟机打开版本版本不兼容
  4. 史上最强Vue,面试、项目全靠它
  5. 2021年-游戏客户端校招-面试题
  6. 论文阅读:Probabilistic Modeling of Semantic Ambiguity for Scene Graph Generation(CVPR21)
  7. 3dsMax显示运动路径却没有显示的一种情况
  8. Stoner Pipeline Simulator v9.9.0(v9.7.2, v9.6, v9.5)
  9. 标书制作视频教程入门到精通-《标书制作特训营》
  10. lamp兄弟连linux学习笔记-linux常用命令大全(思维导图)