package com.sptg.video.cloud.biz.cfgbeans;

import com.baomidou.mybatisplus.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * title: MyBatisPlusConfigBean
 * package: com.sptg.estate.biz.cfgbeans
 * description: MyBatisPuls配置类
 *
 *
 *
 */
@Configuration
@MapperScan("com.sptg.video.cloud.biz.mapper")
public class MyBatisPlusConfigBean {

    /**
     * 分页插件，自动识别数据库类型
     * 多租户，请参考官网【插件扩展】
     * @return PaginationInterceptor
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }


}
