You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
package com.chenxuan.bean.config;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
|
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @ClassName:MybatisPlusConfig
|
|
|
|
|
* @Description: MybatisPlus配置.
|
|
|
|
|
* @Author: Arno_Fu
|
|
|
|
|
* @CreatTime:11/26/2019 - 5:14 PM
|
|
|
|
|
* @Version V1.0
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
@Configuration
|
|
|
|
|
public class MybatisPlusConfig {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @description: 分页插件
|
|
|
|
|
* @return: PaginationInterceptor
|
|
|
|
|
*
|
|
|
|
|
**/
|
|
|
|
|
@Bean
|
|
|
|
|
public PaginationInterceptor paginationInterceptor() {
|
|
|
|
|
return new PaginationInterceptor();
|
|
|
|
|
}
|
|
|
|
|
}
|