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

io.github.kangjianqun.fast.common.log.LogAutoConfiguration Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
package io.github.kangjianqun.fast.common.log;

import io.github.kangjianqun.fast.common.log.aspect.SysLogAspect;
import io.github.kangjianqun.fast.common.log.event.SysLogListener;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 日志自动配置
 *
 * @author 康建群
 */
@EnableAsync
@RequiredArgsConstructor
@Configuration(proxyBeanMethods = false)
public class LogAutoConfiguration {

    @Bean
    public SysLogListener sysLogListener() {
        return new SysLogListener();
    }

    @Bean
    public SysLogAspect sysLogAspect() {
        return new SysLogAspect();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy