40 lines
744 B
Java
40 lines
744 B
Java
/**
|
|
* Copyright (c) 2020 fumeiai All rights reserved.
|
|
*
|
|
*
|
|
*
|
|
* 版权所有,侵权必究!
|
|
*/
|
|
|
|
package com.lz.config;
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
/**
|
|
* mybatis-plus配置
|
|
*
|
|
* @author Mark sunlightcs@gmail.com
|
|
*/
|
|
@Configuration
|
|
public class MybatisPlusConfig {
|
|
|
|
/**
|
|
* 分页插件
|
|
*/
|
|
@Bean
|
|
public PaginationInterceptor paginationInterceptor() {
|
|
return new PaginationInterceptor();
|
|
}
|
|
|
|
|
|
/**
|
|
* 分页插件
|
|
*/
|
|
@Bean
|
|
public DataScopeInterceptor dataScopeInterceptor() {
|
|
return new DataScopeInterceptor();
|
|
}
|
|
}
|