- 记录下jsp页面的分页显示功能。
- 效果图
![](https://i-blog.csdnimg.cn/blog_migrate/f3e809fb40e6c1207944dab6dac640ea.gif)
- 引入相关依赖
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.9.0</version>
</dependency>
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper</artifactId>
<version>4.1.6</version>
</dependency>
- 在Mybatis或Soring核心配置文件中加载
```
<plugin interceptor="com.github.pagehelper.PageHelper">
<property name="dialect" value="mysql"/>
</plugin>
<bean id="sqlSessionFactoryBean" class="org.mybatis.spring.SqlSessionFactoryBean">
<property name="dataSource" ref="dataSource"/>
<property name="typeAliasesPackage" value="zz.pojo"/>
<property name="configLocation" value="classpath:sqlMapConfig.xml"/>
<property name="plugins">
<array>
<bean class="com.github.pagehelper.PageHelper">