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

in.hocg.boot.mybatis.plus.extensions.httplog.autoconfiguration.HttpLogMybatisPlusExtAutoConfiguration Maven / Gradle / Ivy

There is a newer version: 1.0.63
Show newest version
package in.hocg.boot.mybatis.plus.extensions.httplog.autoconfiguration;

import in.hocg.boot.logging.autoconfiguration.core.LoggerListener;
import in.hocg.boot.mybatis.plus.extensions.httplog.HttpLogMpe;
import in.hocg.boot.mybatis.plus.extensions.httplog.support.LoggerListenerImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * Created by hocgin on 2022/3/24
 * email: [email protected]
 *
 * @author hocgin
 */
@Slf4j
@Configuration
@ComponentScan(HttpLogMpe.PACKAGE)
public class HttpLogMybatisPlusExtAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean
    @ConditionalOnClass(name = "in.hocg.boot.logging.autoconfiguration.core.LoggerListener")
    public LoggerListener loggerListener() {
        return new LoggerListenerImpl();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy