当前位置:网站首页>pageHelper不生效,sql没有自动加上limit
pageHelper不生效,sql没有自动加上limit
2022-07-25 15:21:00 【蛋头弹头】
问题引入
我原本在SSM项目中使用过pageHelper插件,引入依赖 + 修改mybaits核心配置文件,分页插件可以正常使用。
这次我在springboot项目中使用pageHelper进行分页查询时没有起作用(sql语句中没有拼接上limit),查询出来了全部的数据。
问题解决
SSM项目 中使用pageHelper插件需要引入的依赖是这样的:
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper</artifactId>
<version>5.3.0</version>
</dependency>
SpringBoot项目 中引入的依赖跟SSM项目不同:
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.4.2</version>
</dependency>
边栏推荐
猜你喜欢

VS2010 add WAP mobile form template

瀑布流布局

Award winning interaction | 7.19 database upgrade plan practical Summit: industry leaders gather, why do they come?

Solve the timeout of dbeaver SQL client connection Phoenix query

JS 同步、异步,宏任务、微任务概述

树莓派入门:树莓派的初始设置

Vs2010添加wap移动窗体模板

Example of password strength verification

《三子棋》C语言数组应用 --n皇后问题雏形

【微信小程序】小程序宿主环境详解
随机推荐
万能通用智能JS表单验证
图片裁剪cropper 示例
推荐10个堪称神器的学习网站
iframe嵌套其它网站页面 全屏设置
Recommend 10 learning websites that can be called artifact
pkg_ Resources dynamic loading plug-in
图片的懒加载
Overview of JS synchronous, asynchronous, macro task and micro task
Tasks, micro tasks, queues and scheduling (animation shows each step of the call)
树莓派入门:树莓派的初始设置
Docker上运行redis以配置文件方式启动,连接客户端报错Error: Server closed the connection
Remember that spark foreachpartition once led to oom
C#,C/S升级更新
How to solve the problem of scanf compilation error in Visual Studio
解决DBeaver SQL Client 连接phoenix查询超时
剑指Offer | 二进制中1的个数
Spark SQL空值Null,NaN判断和处理
Meanshift clustering-01 principle analysis
How to understand the maximum allowable number of errors per client connection of MySQL parameters in Seata?
Idea护眼色设置