All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.gudqs.system.configuration.MybatisConfiguration Maven / Gradle / Ivy

There is a newer version: 1.2
Show newest version
package cn.gudqs.system.configuration;

import cn.gudqs.mybatis.interceptor.SqlInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.Properties;

/**
 * @author wq
 * @date 2018/10/10
 * @description seo-new
 */

@Configuration
public class MybatisConfiguration {

    @Bean
    public SqlInterceptor sqlStatsInterceptor() {
        SqlInterceptor sqlStatsInterceptor = new SqlInterceptor();
        Properties properties = new Properties();
        properties.setProperty("dialect", "mysql");
        sqlStatsInterceptor.setProperties(properties);
        return sqlStatsInterceptor;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy