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;
|
}
|
|
}
|