Springboot2.x集成PageHelper
1.首先搭建好springboot项目
2.引入pagehelper的maven依赖
<dependency><groupId>com.github.pagehelper</groupId><artifactId>pagehelper-spring-boot-starter</artifactId><version>1.2.12</version></dependency>
3.添加配置文件(mybatis-config.xml)
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN""http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration><plugins><plugin interceptor="com.github.pagehelper.PageInterceptor"><property name="helpdialect" value="mysql" /><property name="offsetAsPageNum" value="true" /><property name="rowBoundsWithCount" value="true" /><property name="pageSizeZero" value="true" /><property name="reasonable" value="true" /><property name="params" value="pageNum=start;pageSize=limit;pageSizeZero=zero;reasonable=heli;count=contsql"/></plugin></plugins>
</configuration>
Springboot2.x集成PageHelper相关推荐
- SpringBoot笔记:SpringBoot2.3集成SpringSession+nginx+redis实现session共享
文章目录 Spring Session介绍 Redis集成 yml配置 依赖添加 redis存值查看 登录服务器查看redis的值 查询所有"spring:session:"开头的 ...
- SpringBoot学习历程(十一):SpringBoot2.X集成mail发送邮件
SpringBoot学习历程(十一):SpringBoot2.X集成mail发送邮件 前言 1. 引入依赖 2. 设置邮件配置信息 3. 发送邮件 3.1 发送普通文本邮件 3.2 发送HTML格式内 ...
- SpringBoot2.x 集成 七牛云对象存储Kodo
本文主要对SpringBoot2.x集成七牛云对象存储Kodo进行简单总结,其中SpringBoot使用的2.4.5版本. 一.七牛云对象存储Kodo简介 七牛云对象存储Kodo是七牛云提供的高可靠. ...
- SpringBoot2.x 集成 FreeMarker
本文主要对SpringBoot2.x集成FreeMarker及其常用语法进行简单总结,其中SpringBoot使用的2.4.5版本. 一.FreeMarker简介 Apache FreeMarker™ ...
- Springboot2.0集成阿里云RocketMQ
介绍 RocketMQ是出自阿里巴巴的一款开源消息中间件,在设计上借鉴了Kafka,2017年成为Apache顶级项目,虽然目前社区无法和Kafka比肩,但其历经多次天猫双十一的考验,其性能和稳定是毋 ...
- springboot2.x集成ureport2.2.9搭建报表引擎
springboot2.x集成ureport2.2.9搭建报表引擎 1.创建springboot项目,修改pom.xml添加相关依赖 2.增加src/main/resources/context.pr ...
- springboot集成PageHelper
springboot集成PageHelper: 第一步:pom文件还是需要引入依赖 1 <dependency> 2 <groupId>com.github.pagehelpe ...
- SpringBoot2.x 集成 Thymeleaf
本文主要对SpringBoot2.x集成Thymeleaf及其常用语法进行简单总结,其中SpringBoot使用的2.4.5版本. 一.Thymeleaf简介 Thymeleaf是面向Web和独立环境 ...
- Springboot2.x集成ElasticSearch
目录 springboot2.x集成es springboot2.x集成es 首先导入我们的pom依赖 <dependency><groupId>org.springframe ...
最新文章
- asp.net mvc fckeditor全攻略(补充:Controller中传值的问题)
- 【数字智能三篇】之二: 一页纸说清楚“什么是推荐系统?”
- Python sort()和sorted()函数区别及用法详解
- GridView导出到Excel和开源图表工具
- 性能测试二十八:环境部署之Dubbo部署
- Android屏幕尺寸适配注意事项
- spring之使用Spring Security实现权限管理
- 1. ThreadPoolExecutor的一个常用的构造方法
- pyinstaller与anaconda python_Win10上Anaconda环境下python3.6安装和使用pyinstaller
- 深度学习(机器学习)模型压缩开源库整理
- 基于Tkinter和百度Aip的人体关键点检测
- (包含每张图片的3DMM系数,可以直接重建出3D人脸)AFLW2000-3D数据库介绍及自带代码使用
- 扫描枪无限连服务器,无线扫描枪连接电脑的3个步骤
- Linux查询系统上次启动时间last reboot、上线时间uptime
- Python 深拷贝和浅拷贝详解
- 一次错综离奇的super调用的None参数super() argument 1 must be type, not None
- qq登陆inc.php,JTBC(php) 版 QQ 一键登录实现过程
- 电流型和电压型PHY
- 小小知识点(三十七)OFDM和OFDMA的区别以及OFDMA与SC-FDMA的区别
- 理清C++常量指针和指针常量这团乱麻