当前位置:网站首页>PageHelper.startPage没有生效问题
PageHelper.startPage没有生效问题
2022-07-25 15:43: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();
//添加配置,也可以指定文件路径
Properties p = new Properties();
p.setProperty("offsetAsPageNum", "true");
p.setProperty("rowBoundsWithCount", "true");
p.setProperty("reasonable", "true");
pageHelper.setProperties(p);
return pageHelper;
}
}
边栏推荐
- "Digital security" alert NFT's seven Scams
- Solve the vender-base.66c6fc1c0b393478adf7.js:6 typeerror: cannot read property 'validate' of undefined problem
- Pytoch learning notes -- Summary of common functions 3
- TypeError: Unrecognized value type: <class ‘str‘> ParserError: Unknown string format
- LeetCode - 232 用栈实现队列 (设计 双栈实现队列)
- Window system black window redis error 20creating server TCP listening socket *: 6379: listen: unknown error19-07-28
- 一文入门Redis
- 面试8家公司,1周拿了5个offer,分享一下自己的心得
- 物理防火墙是什么?有什么作用?
- MySQL全局锁
猜你喜欢

Reasons for data format conversion when matlab reads the displayed image

Redis distributed lock, it's really impossible without it

IDEA—点击文件代码与目录自动同步对应

LeetCode - 359 日志速率限制器 (设计)

Leetcode - 303 area and retrieval - array immutable (design prefix and array)

LeetCode - 677 键值映射(设计)*

Google Blog: training general agents with multi game decision transformer

通用测试用例写作规范

Ice 100g network card fragment message hash problem

基于Caffe ResNet-50网络实现图片分类(仅推理)的实验复现
随机推荐
R语言偏相关性计算(Partial Correlation)、使用ggm包的pcor函数计算偏相关性(Partial Correlations)
Okaleido launched the fusion mining mode, which is the only way for Oka to verify the current output
Data system partition design - partition and secondary index
MySQL tutorial 65 data in MySQL operation table
百奥赛图与LiberoThera共同开发全人GPCR抗体药物取得里程碑式进展
通用测试用例写作规范
Pytoch learning notes -- Summary of common functions 3
产品动态丨Android 13 高效适配全新升级
The difference between mouseover and mouseenter
共2600页!又一份神级的面试手册面世~
MySQL教程68-AS 设置别名
Idea - click the file code to automatically synchronize with the directory
How to realize page inclusion
用GaussDB(for Redis)存画像,推荐业务轻松降本60%
如何构建面向海量数据、高实时要求的企业级OLAP数据引擎?
Beyond Compare 4 实现class文件对比【最新】
LeetCode - 359 日志速率限制器 (设计)
Geogle colab notes 1-- run the.Py file on the cloud hard disk of Geogle
兆骑科创高质量海归人才双创服务平台,线上直播路演
CVPR 2022 | in depth study of batch normalized estimation offset in network