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