io.github.kangjianqun.fast.common.log.LogAutoConfiguration Maven / Gradle / Ivy
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