ssm使用pagehelper分页插件
1.引入分页插件
使用 Maven引入
在 pom.xml 中添加如下依赖:
<!-- mybatis 的 page helper分页插件-->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper</artifactId>
<version>版本号</version>
</dependency>
2. 配置拦截器插件
在 Spring 配置文件中配置拦截器插件
<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
<!-- 其他配置 -->
<!-- 配置插件 -->
<property name="plugins">
<array