ssm+PageHelper实现分页查询
通过搭建ssm框架,然后通过mybatis的分页插件pagehelp进行分页查询。 源码:https://gitee.com/smfx1314/pagehelper 看一下项目结构: 首先创建一个maven工程,pom中引入相关jar包 < dependencies > < dependency > < groupId > org.springframework </ groupId > < artifactId > spring-core </ artifactId > < version > 4.3.2.RELEASE </ version > </ dependency > < dependency > < groupId > org.springframework </ groupId > < artifactId > spring-aop </ artifactId > < version > 4.3.2.RELEASE </ version > </ dependency > < dependency > < groupId > org.springframework </ groupId > < artifactId > spring-aspects </ artifactId > < version > 4.3.2.RELEASE </ version > </