需要配置过滤器

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;
} }

  

最新文章

  1. domReady的实现
  2. OpenCASCADE Conic to BSpline Curves-Parabola
  3. Keychain group access
  4. 一个简单xml数据转换为数组的方法
  5. js获取iframe里的body内容
  6. 【Origin】工仕途中
  7. ThinkPhp之分页
  8. [HIHO1322]树结构判定(并查集)
  9. 第一百九十七-第二百天 how can I 坚持
  10. 飞信免费发送接口API的测试 httpClient
  11. C#应用程序获取项目路径的方法总结
  12. linux 自旋锁
  13. ACM-ICPC北京赛区(2017)网络赛_Minimum
  14. MyEclipse中Lombok的安装及使用
  15. HWM、PCTFREE、PCTUSED
  16. ServletContextListener
  17. StackExchange.Redis 模糊查询和删除
  18. 如何在一小时内更新100篇文章?-Evernote Sync插件介绍
  19. 用virtualenv建立独立虚拟环境 批量导入模块信息
  20. 数据库:Mysql中“select ... for update”排他锁分析

热门文章

  1. pdf导出 预览、直接打印、打印加预览
  2. Elasticsearch使用示例
  3. windows elasticsearch中文乱码
  4. 关于sqlyang 连接远程服务器 MySQL "1251-client does not support authentication..."的处理办法
  5. Linux下aria2详细配置,以及接管浏览器下载项
  6. vue相关组件用法
  7. idea主题插件 ->Atom Material File Icons
  8. ES6-Promise上
  9. docker 安装 elasticsearch7.6.2 kibana7.6.2
  10. 梦想云图Node.JS服务 (网页CAD,在线CAD )