package cn.quant.andy.config;


import cn.quant.mybatis.plugin.MybatisPageInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Created by Administrator on 2021/7/16 0016.
 */
@Configuration
@MapperScan("cn.quant.andy.jpa.*.mapper")
@EnableTransactionManagement
public class DatabaseConfiguration {

    @Bean
    public MybatisPageInterceptor mybatisPageInterceptor(){
        return new MybatisPageInterceptor();
    }
}
