1.jar包 <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <version>5.1.10</version> </dependency> 2.在mybatis主配置文件里添加分页助手插件 <!--分页插件--> <plugins> <plugin