im.aop.loggers.advice.before.LogBeforeConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of im-aop-loggers Show documentation
Show all versions of im-aop-loggers Show documentation
A handy and configurable sets of annotation-based loggers for Spring Boot that can
log every execution of a method when entering or exiting normally or abnormally, without you
writing a single line of code using aspect-oriented programming (AOP)
package im.aop.loggers.advice.before;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import im.aop.loggers.AopLoggersProperties;
@Configuration(proxyBeanMethods = false)
public class LogBeforeConfiguration {
@Bean
public LogBeforeAdvice logBeforeAdvice() {
return new LogBeforeAdvice();
}
@Bean
public LogBeforeService logBeforeService(final AopLoggersProperties aopLoggersProperties) {
return new LogBeforeService(aopLoggersProperties);
}
}