PageHelper做数据分页。在你的select语句后面加入分页的sql 内容,如果你使用的mysql数据库,它就是在select * from student后面加入limit语句。 使用步骤: 1.加入依赖pagehelper依赖 <dependency> <groupId>com.github.pagehelper</ groupId> <artifactId>pagehe1per</ artifactId>