You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
499 B
25 lines
499 B
|
|
package com.config;
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
import com.baomidou.mybatisplus.mapper.MetaObjectHandler;
|
|
import com.baomidou.mybatisplus.plugins.PaginationInterceptor;
|
|
|
|
/**
|
|
* mybatis-plus配置
|
|
*/
|
|
@Configuration
|
|
public class MybatisPlusConfig {
|
|
|
|
/**
|
|
* 分页插件
|
|
*/
|
|
@Bean
|
|
public PaginationInterceptor paginationInterceptor() {
|
|
return new PaginationInterceptor();
|
|
}
|
|
|
|
}
|