当前位置:网站首页>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;
}
}
边栏推荐
- MySQL教程71-WHERE 条件查询数据
- MySQL乐观锁
- MySQL教程65-MySQL操作表中数据
- Endnote cannot edit range resolution
- Okaleido launched the fusion mining mode, which is the only way for Oka to verify the current output
- 报表工具的二次革命
- Visual studio 2022 view class diagram
- 权限管理-删除菜单(递归)
- Upgrade esxi6.7.0 to 7.0u3f (updated on July 12, 2022)
- Analysis and solution of data and clock mismatch delay in SPI transmission
猜你喜欢
![[IJCAI 2022] parameter efficient large model sparse training method, which greatly reduces the resources required for sparse training](/img/d4/bcc577f320a893c7006177993b2e7a.png)
[IJCAI 2022] parameter efficient large model sparse training method, which greatly reduces the resources required for sparse training

Pytoch learning notes -- Summary of common functions 3

Pytoch learning notes -- Summary of common functions of pytoch 1

通用测试用例写作规范

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

用GaussDB(for Redis)存画像,推荐业务轻松降本60%

Product dynamics - Android 13 high-efficiency adaptation new upgrade

Save the image with gaussdb (for redis), and the recommended business can easily reduce the cost by 60%

The second revolution of reporting tools

哪个led显示屏厂家更好
随机推荐
How to disable hosting when Flink SQL in flink-1.13.6 runs in yarn session mode
2600 pages in total! Another divine interview manual is available~
乐观锁悲观锁适用场景
Leetcode - 359 log rate limiter (Design)
Lazy loading of pictures
Visual studio 2022 view class diagram
Pytoch learning notes -- seresnet50 construction
Baseband simulation system experiment of 4pam in Gaussian channel and Rayleigh channel
MATLAB optimization tool manopt installation
MySQL tutorial 67- filter duplicate data using distinct
Beyond compare 4 realizes class file comparison [latest]
R语言偏相关性计算(Partial Correlation)、使用ggm包的pcor函数计算偏相关性(Partial Correlations)
MySQL教程65-MySQL操作表中数据
Leetcode - 380 o (1) time to insert, delete and get random elements (design hash table + array)
leetcode:528. 按权重随机选择【普通随机失效 + 要用前缀和二分】
MySQL教程71-WHERE 条件查询数据
MySQL 悲观锁
Crazy God redis notes 12
General test case writing specification
# JWT 图解