分页配置文件
parent
ee2644e155
commit
04f28330c1
@ -0,0 +1,26 @@
|
|||||||
|
package com.kiisoo.ic.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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author jinchaofan
|
||||||
|
* @date 2019/9/29 15:17
|
||||||
|
* @company kiisoo
|
||||||
|
* @details mybatis-plus配置类
|
||||||
|
*/
|
||||||
|
@Configuration
|
||||||
|
@MapperScan({"com.kiisoo.mcc.*.*.mapper,com.kiisoo.mcc.*.mapper"})
|
||||||
|
public class MybatisPlusConfig {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页插件
|
||||||
|
*/
|
||||||
|
@Bean
|
||||||
|
public PaginationInterceptor paginationInterceptor() {
|
||||||
|
return new PaginationInterceptor();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue