peng
2026-03-24 ca41db25ab3da9ddd509b79fd783b60d2e66056f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.tievd.jyz.config;
 
import com.tievd.jyz.plugin.EventInterceptPlugin;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
 
import java.util.Properties;
 
/**
 *
 * @description mybatis plus 配置
 * @modify
 */
@Configuration
public class MybatisConfig {
 
    @Bean
    public EventInterceptPlugin sqlExplainInterceptor() {
        Properties properties = new Properties();
        properties.setProperty("stopProceed", "false");
        EventInterceptPlugin sqlExplainInterceptor = new EventInterceptPlugin();
        sqlExplainInterceptor.setProperties(properties);
        return sqlExplainInterceptor;
    }
 
}