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();
    }

}
