app
潘志宝
2024-08-19 2563526c3fda3ae9b45aad02ed10427508a29af3
提交 | 用户 | 时间
a6de49 1 ///**
H 2 // * Copyright (c) 2018 人人开源 All rights reserved.
3 // *
4 // * https://www.renren.io
5 // *
6 // * 版权所有,侵权必究!
7 // */
8 //
9 //package com.iailab.common.config;
10 //
11 //import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
12 //import com.baomidou.mybatisplus.extension.plugins.inner.BlockAttackInnerInterceptor;
13 //import com.baomidou.mybatisplus.extension.plugins.inner.OptimisticLockerInnerInterceptor;
14 //import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
15 //import com.iailab.common.interceptor.DataFilterInterceptor;
16 //import org.springframework.context.annotation.Bean;
17 //import org.springframework.context.annotation.Configuration;
18 //
19 ///**
20 // * mybatis-plus配置
21 // *
22 // * @author Mark sunlightcs@gmail.com
23 // * @since 1.0.0
24 // */
25 //@Configuration
26 //public class MybatisPlusConfig {
27 //
28 //    @Bean
29 //    public MybatisPlusInterceptor mybatisPlusInterceptor() {
30 //        MybatisPlusInterceptor mybatisPlusInterceptor = new MybatisPlusInterceptor();
31 //        // 数据权限
32 //        mybatisPlusInterceptor.addInnerInterceptor(new DataFilterInterceptor());
33 //        // 分页插件
34 //        mybatisPlusInterceptor.addInnerInterceptor(new PaginationInnerInterceptor());
35 //        // 乐观锁
36 //        mybatisPlusInterceptor.addInnerInterceptor(new OptimisticLockerInnerInterceptor());
37 //        // 防止全表更新与删除
38 //        mybatisPlusInterceptor.addInnerInterceptor(new BlockAttackInnerInterceptor());
39 //
40 //        return mybatisPlusInterceptor;
41 //    }
42 //
43 //}