From c2536a297d879c32c7aee6e51764522d295982fe Mon Sep 17 00:00:00 2001 From: shijie <648688341@qq.com> Date: Fri, 11 Sep 2020 12:52:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E9=A1=B5=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../crms/DqFinancialCrmsApplication.java | 2 +- .../financial/crms/config/IPageConfig.java | 13 ++++++++++++ .../hrms/DqFinancialHrmsApplication.java | 2 +- .../framework/config/MybatisPlusConfig.java | 20 ------------------- 4 files changed, 15 insertions(+), 22 deletions(-) create mode 100644 dq-financial-crms/src/main/java/com/daqing/financial/crms/config/IPageConfig.java delete mode 100644 dq-framework-common/src/main/java/com/daqing/framework/config/MybatisPlusConfig.java diff --git a/dq-financial-crms/src/main/java/com/daqing/financial/crms/DqFinancialCrmsApplication.java b/dq-financial-crms/src/main/java/com/daqing/financial/crms/DqFinancialCrmsApplication.java index 90326d15..0ae25f33 100644 --- a/dq-financial-crms/src/main/java/com/daqing/financial/crms/DqFinancialCrmsApplication.java +++ b/dq-financial-crms/src/main/java/com/daqing/financial/crms/DqFinancialCrmsApplication.java @@ -9,7 +9,7 @@ import org.springframework.context.annotation.ComponentScan; @EnableFeignClients(basePackages = "com.daqing.financial.crms.feign") @EnableDiscoveryClient @SpringBootApplication -@ComponentScan(basePackages = "com.daqing.financial") +@ComponentScan(basePackages = "com.daqing") public class DqFinancialCrmsApplication { public static void main(String[] args) { diff --git a/dq-financial-crms/src/main/java/com/daqing/financial/crms/config/IPageConfig.java b/dq-financial-crms/src/main/java/com/daqing/financial/crms/config/IPageConfig.java new file mode 100644 index 00000000..6001a7e0 --- /dev/null +++ b/dq-financial-crms/src/main/java/com/daqing/financial/crms/config/IPageConfig.java @@ -0,0 +1,13 @@ +package com.daqing.financial.crms.config; + +import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +@Configuration +public class IPageConfig { + @Bean + public PaginationInterceptor paginationInterceptor() { + return new PaginationInterceptor(); + } +} diff --git a/dq-financial-hrms/src/main/java/com/daqing/financial/hrms/DqFinancialHrmsApplication.java b/dq-financial-hrms/src/main/java/com/daqing/financial/hrms/DqFinancialHrmsApplication.java index 81c5eefa..8a266936 100644 --- a/dq-financial-hrms/src/main/java/com/daqing/financial/hrms/DqFinancialHrmsApplication.java +++ b/dq-financial-hrms/src/main/java/com/daqing/financial/hrms/DqFinancialHrmsApplication.java @@ -9,7 +9,7 @@ import org.springframework.context.annotation.ComponentScan; @EnableFeignClients(basePackages = "com.daqing.financial.hrms.feign") @EnableDiscoveryClient @SpringBootApplication -@ComponentScan(basePackages = "com.daqing.financial") +@ComponentScan(basePackages = "com.daqing") public class DqFinancialHrmsApplication { public static void main(String[] args) { diff --git a/dq-framework-common/src/main/java/com/daqing/framework/config/MybatisPlusConfig.java b/dq-framework-common/src/main/java/com/daqing/framework/config/MybatisPlusConfig.java deleted file mode 100644 index d8ebb993..00000000 --- a/dq-framework-common/src/main/java/com/daqing/framework/config/MybatisPlusConfig.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.daqing.framework.config; - -import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -/** - * @Author: gongsj. - * @Description: 分页拦截器注入到spring中 - * @Date:Created in 2020/09/09 11:33. - * @Modified By: - */ -@Configuration -public class MybatisPlusConfig { - public PaginationInterceptor paginationInterceptor() { - PaginationInterceptor page = new PaginationInterceptor(); - page.setDialectType("mysql"); - return page; - } -} \ No newline at end of file