springboot使用pagehelper进行分页
上次的博客项目,使用到了分页,这里总结一下 1.项目环境 IDE:IDEA 语言:java 框架:springboot 模板引擎:thymeleaf 2.效果 3.pom.xml <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <version>1.2.5</version> </dependency> 4.application.properties #pagehelper pagehelper . helperDialect = mysql pagehelper . reasonable = true pagehelper . supportMethodsArguments = true pagehelper . params . count = countSql 5.后端 //查博客 @RequestMapping ( "/QueryBlog" ) public String QueryBlog ( Model m , @RequestParam ( value = "start" , defaultValue = "1" ) Integer start , @RequestParam ( value =