当前位置:网站首页>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;
}
}
边栏推荐
- 推荐系统-协同过滤在Spark中的实现
- Endnote cannot edit range resolution
- How to solve cross domain problems
- Pytoch learning notes -- Summary of common functions 3
- Zhaoqi Kechuang high-quality overseas returnee talent entrepreneurship and innovation service platform, online live broadcast Roadshow
- Matlab randInt, matlab randInt function usage "recommended collection"
- How matlab saves all the data after running
- Google Blog: training general agents with multi game decision transformer
- 面试突击:为什么 TCP 需要 3 次握手?
- # JWT 图解
猜你喜欢

报表工具的二次革命

I interviewed 8 companies and got 5 offers in a week. Share my experience

# JWT 图解

MySQL—用户和权限管控

Implementation of recommendation system collaborative filtering in spark

JVM—类加载器和双亲委派模型

Reasons for data format conversion when matlab reads the displayed image

How matlab produces random complex sequences

Boomi荣获“多元化最佳首席执行官奖”和“职业成长最佳公司奖”,在大型公司类别中跻身50强
![[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
随机推荐
Data system partition design - partition rebalancing
[Shakespeare: keep the fun of being a man]
Beyond Compare 4 实现class文件对比【最新】
【服务器数据恢复】HP EVA服务器存储意外断电导致RAID信息丢失的数据恢复案例
Leetcode - 303 area and retrieval - array immutable (design prefix and array)
微信小程序
Pytoch learning notes -- seresnet50 construction
报表工具的二次革命
mouseover和mouseenter的区别
Redis distributed lock, it's really impossible without it
LeetCode - 707 设计链表 (设计)
ZOJ - 4114 flipping game DP, reasonable state representation
How to solve cross domain problems
Redis分布式锁,没它真不行
ML - Speech - traditional speech model
ML - Speech - Introduction to speech processing
Matlab -- CVX optimization kit installation
Leetcode - 232 realize queue with stack (design double stack to realize queue)
Idea - click the file code to automatically synchronize with the directory
Wechat applet