当前位置:网站首页>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>
边栏推荐
- iframe嵌套其它网站页面 全屏设置
- Debounce and throttle
- Nacos2.1.0 cluster construction
- 密码强度验证示例
- Handle Oracle deadlock
- 如何解决Visual Studio中scanf编译报错的问题
- Spark SQL空值Null,NaN判断和处理
- Introduction to raspberry Pie: initial settings of raspberry pie
- [Android] recyclerview caching mechanism, is it really difficult to understand? What level of cache is it?
- Cmake specify opencv version
猜你喜欢

Visual Studio 2022 查看类关系图

Remember that spark foreachpartition once led to oom

Spark submission parameters -- use of files

Implementation of asynchronous FIFO

异步fifo的实现

解决DBeaver SQL Client 连接phoenix查询超时

What is the Internet of things

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

Fast-lio: fast and robust laser inertial odometer based on tightly coupled IEKF

防抖(debounce)和节流(throttle)
随机推荐
iframe嵌套其它网站页面 全屏设置
Docker上运行redis以配置文件方式启动,连接客户端报错Error: Server closed the connection
Spark partition operators partitionby, coalesce, repartition
Cmake specify opencv version
Stored procedure bias of SQL to LINQ
CMake指定OpenCV版本
Spark提交参数--files的使用
Simulate setinterval timer with setTimeout
Pl/sql creates and executes ORALCE stored procedures and returns the result set
sql to linq 之存储过程偏
Object.prototype. Hasownproperty() and in
任务、微任务、队列和调度(动画展示每一步调用)
Install entityframework method
Rediscluster setup and capacity expansion
Implementation of asynchronous FIFO
The implementation process of inheritance and the difference between Es5 and ES6 implementation
Handle Oracle deadlock
用OpenPose进行单个或多个人体姿态估计
Redis elimination strategy list
Maxcompute SQL 的查询结果条数受限1W