mybatis plus 分页总查出来全部数据
2024-10-21 15:52:53
需要配置过滤器
package com.tyyy.example.coreurl.config; import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; @Configuration
@MapperScan("com.tyyy.example.coreurl.mapper")
public class MybatisPlusConfig { @Bean
public MybatisPlusInterceptor mybatisPlusInterceptor() {
MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL));
return interceptor;
} }
最新文章
- domReady的实现
- OpenCASCADE Conic to BSpline Curves-Parabola
- Keychain group access
- 一个简单xml数据转换为数组的方法
- js获取iframe里的body内容
- 【Origin】工仕途中
- ThinkPhp之分页
- [HIHO1322]树结构判定(并查集)
- 第一百九十七-第二百天 how can I 坚持
- 飞信免费发送接口API的测试 httpClient
- C#应用程序获取项目路径的方法总结
- linux 自旋锁
- ACM-ICPC北京赛区(2017)网络赛_Minimum
- MyEclipse中Lombok的安装及使用
- HWM、PCTFREE、PCTUSED
- ServletContextListener
- StackExchange.Redis 模糊查询和删除
- 如何在一小时内更新100篇文章?-Evernote Sync插件介绍
- 用virtualenv建立独立虚拟环境 批量导入模块信息
- 数据库:Mysql中“select ... for update”排他锁分析
热门文章
- pdf导出 预览、直接打印、打印加预览
- Elasticsearch使用示例
- windows elasticsearch中文乱码
- 关于sqlyang 连接远程服务器 MySQL ";1251-client does not support authentication...";的处理办法
- Linux下aria2详细配置,以及接管浏览器下载项
- vue相关组件用法
- idea主题插件 ->;Atom Material File Icons
- ES6-Promise上
- docker 安装 elasticsearch7.6.2 kibana7.6.2
- 梦想云图Node.JS服务 (网页CAD,在线CAD )