|
@@ -1,20 +1,18 @@
|
|
|
-package com.lantone.report.config;
|
|
|
+package com.lantone.dblayermbg.config;
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
|
|
|
-import org.mybatis.spring.annotation.MapperScan;
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
|
|
|
|
|
/**
|
|
|
- * @Description: MybatisPlus配置类
|
|
|
- * @author: gaodm
|
|
|
- * @time: 2018/8/2 13:39
|
|
|
+ * @Description:
|
|
|
+ * @author: rengb
|
|
|
+ * @time: 2020/4/8 21:41
|
|
|
*/
|
|
|
@EnableTransactionManagement
|
|
|
@Configuration
|
|
|
-@MapperScan("com.lantone.report.mapper*")//这个注解,作用相当于下面的@Bean MapperScannerConfigurer,2者配置1份即可
|
|
|
-public class MybatisPlusConfigurer {
|
|
|
+public class DruidConfig {
|
|
|
|
|
|
/**
|
|
|
* mybatis-plus分页插件<br>
|
|
@@ -30,4 +28,4 @@ public class MybatisPlusConfigurer {
|
|
|
return paginationInterceptor;
|
|
|
}
|
|
|
|
|
|
-}
|
|
|
+}
|