# PagingPlugin **Repository Path**: hiswing/PagingPlugin ## Basic Information - **Project Name**: PagingPlugin - **Description**: PageHelper 的 MyBatis Generator 插件。用于在 *Example.java 文件中增加分页功能。 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2015-04-19 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #PagingPlugin PageHelper 的 MyBatis Generator 插件。用于在 *Example.java 文件中增加分页功能。 ###使用方法 1.首先确认工程中的 Mybatis 和 PageHelper 已经配置好并可以使用。 2.确认 Mybatis Generator 已经配置好,并可以使用。 3.在 Mybatis Generator 的配置文件中加入以下配置。 4.利用 maven 运行 Mybatis Generator 生成代码后,即可在 *Example.java 文件中插入 PageHelper 的分页代码。 5.如何进行分页? example.page(pageNum, pageSize); 若 pageSize == 0,则默认取 10 条数据。