|
1
2
3
4
5
6
7
8
9
10
11
|
//package com.huaheng.framework.config;
//
//import com.baomidou.mybatisplus.plugins.PaginationInterceptor;
//import org.mybatis.spring.annotation.MapperScan;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//@MapperScan({"com.huaheng.pc.**.**.mapper", "com.huaheng.pc.**.**.**.mapper"})
//public class MybatisPlusConfig {
//
|
|
12
|
// /**
|
|
13
14
|
// * mybatis-plus分页插件<br>
// * 文档:http://mp.baomidou.com<br>
|
|
15
16
|
// */
// @Bean
|
|
17
18
19
20
21
22
|
// public PaginationInterceptor paginationInterceptor() {
// PaginationInterceptor page = new PaginationInterceptor();
//// 开启 PageHelper 的支持
// page.setLocalPage(true);
//// page .setDialectType("mysql");
// return page ;
|
|
23
|
// }
|
|
24
25
26
27
28
29
30
31
32
33
34
35
36
|
//
//// /**
//// * 相当于顶部的: @MapperScan("com.baomidou.springboot.mapper*") 二选一就可以
//// * 这里可以扩展,比如使用配置文件来配置扫描Mapper的路径
//// */
//// @Bean
//// public MapperScannerConfigurer mapperScannerConfigurer() {
//// MapperScannerConfigurer scannerConfigurer = new MapperScannerConfigurer();
//// scannerConfigurer.setBasePackage("com.baomidou.springboot.mapper*");
//// return scannerConfigurer;
//// }
//
//}
|