|
@@ -0,0 +1,22 @@
|
|
|
|
+package com.fdage.base.config;
|
|
|
|
+
|
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
|
|
|
|
+import org.springframework.context.annotation.Bean;
|
|
|
|
+import org.springframework.context.annotation.Configuration;
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * 2 * @Author: Abner
|
|
|
|
+ * 3 * @Date: 2021/1/18 9:55
|
|
|
|
+ * 4
|
|
|
|
+ */
|
|
|
|
+@Configuration
|
|
|
|
+public class MyBatisPlusPageConfig {
|
|
|
|
+ /**
|
|
|
|
+ * 分页插件
|
|
|
|
+ */
|
|
|
|
+ @Bean
|
|
|
|
+ public PaginationInterceptor paginationInterceptor() {
|
|
|
|
+ return new PaginationInterceptor();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+}
|