当前位置:网站首页>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>
边栏推荐
猜你喜欢

Process control (Part 1)

反射-笔记

用OpenPose进行单个或多个人体姿态估计

什么是物联网

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

Use the command to check the WiFi connection password under win10 system

Example of password strength verification

How much memory can a program use at most?

NPM's nexus private server e401 E500 error handling record

《三子棋》C语言数组应用 --n皇后问题雏形
随机推荐
MySql的安装配置超详细教程与简单的建库建表方法
CMake指定OpenCV版本
Rediscluster setup and capacity expansion
Spark-SQL UDF函数
Automatically set the template for VS2010 and add header comments
C语言函数复习(传值传址【二分查找】,递归【阶乘,汉诺塔等】)
Use the command to check the WiFi connection password under win10 system
How much memory can a program use at most?
spark中saveAsTextFile如何最终生成一个文件
pkg_ Resources dynamic loading plug-in
What is the Internet of things
C#,C/S升级更新
Cmake specify opencv version
密码强度验证示例
SPI传输出现数据与时钟不匹配延后问题分析与解决
了解一下new的过程发生了什么
My creation anniversary
Args parameter parsing
CGO is realy Cool!
【JS高级】js之正则相关函数以及正则对象_02