- 一. Spring整合PageHelper分页插件
- 1. 在pom.xml文件中添加分页插件的jar包依赖
- 2. 修改spring.xml---在SessionFactory的标签中注入plugins属性
2. 修改spring.xml—在SessionFactory的标签中注入plugins属性com.github.pagehelper pagehelper 4.2.1
(1)plugins属性是一个由多个Inteceptor构成的数组,所以要使用标签配置数组
(2)PageHelper类中有setProperties()方法,说明属性名是properties,所以要使用标签配置
mysql



