@Configuration //标识配置类 public class MybatisPlusConfig { @Bean //将自定义对象交给Spring容器管理 public MybatisPlusInterceptor mybatisPlusInterceptor(){ MybatisPlusInterceptor interceptor=new MybatisPlusInterceptor(); interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MARIADB)); return interceptor; } }
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)