当前位置:网站首页>Pagehelper.startpage is not effective
Pagehelper.startpage is not effective
2022-07-25 16:04:00 【Leon_ Jinhai_ Sun】
import com.github.pagehelper.PageHelper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.Properties;
@Configuration
public class PageHelperConfigure {
@Bean
public PageHelper pageHelper() {
PageHelper pageHelper = new PageHelper();
// Add the configuration , You can also specify the file path
Properties p = new Properties();
p.setProperty("offsetAsPageNum", "true");
p.setProperty("rowBoundsWithCount", "true");
p.setProperty("reasonable", "true");
pageHelper.setProperties(p);
return pageHelper;
}
}
边栏推荐
- Where is there a demo to set up the flex CDC to draw the number of MySQL?
- BSC智能链合约模式系统开发详情
- ServletConfig 类和ServletContext 类
- Pytoch learning notes -- seresnet50 construction
- 百奥赛图与LiberoThera共同开发全人GPCR抗体药物取得里程碑式进展
- 泰山OFFICE技术讲座:英寸,厘米,磅,派卡,提,行,字行,像素的换算关系
- MySQL tutorial 71-where conditional query data
- Data system partition design - Request Routing
- Copy a word style template to another document
- Beyond compare 4 realizes class file comparison [latest]
猜你喜欢

ML - Speech - Introduction to speech processing

tkinter模块高级操作(一)—— 透明按钮、透明文本框、自定义按钮及自定义文本框

基于Caffe ResNet-50网络实现图片分类(仅推理)的实验复现

2600 pages in total! Another divine interview manual is available~

Equivalent change of resistance circuit (Ⅱ)

Experimental reproduction of image classification (reasoning only) based on caffe resnet-50 network

如何构建面向海量数据、高实时要求的企业级OLAP数据引擎?

Redis分布式锁,没它真不行

Leetcode - 225 implements stack with queue

Pytoch learning notes advanced_ CNN (using perception_module) implements MNIST dataset classification - (comments and results)
随机推荐
[server data recovery] data recovery cases of raid information loss caused by unexpected power failure of HP EVA server storage
MySQL隐式锁
一文入门Redis
Pytoch learning notes advanced_ CNN (using perception_module) implements MNIST dataset classification - (comments and results)
没错,请求DNS服务器还可以使用UDP协议
I want to ask whether the variable configuration function can only be used in SQL mode
BSC smart chain contract mode system development details
Alibaba's internal "100 billion level concurrent system architecture design notes" are all inclusive, too comprehensive
MySQL-自增锁
如何构建面向海量数据、高实时要求的企业级OLAP数据引擎?
How to disable hosting when Flink SQL in flink-1.13.6 runs in yarn session mode
物理防火墙是什么?有什么作用?
递归菜单查询(递归:自己查自己)
mysql 表读锁
ML - Speech - traditional speech model
MySQL教程66-数据表查询语句
Endnote cannot edit range resolution
HDD杭州站·HarmonyOS技术专家分享HUAWEI DevEco Studio特色功能
mysql 表写锁
Leetcode - 362 knock counter (Design)