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

com.xfmeet.core.log.LogConfig Maven / Gradle / Ivy

The newest version!
package com.xfmeet.core.log;


import com.xfmeet.core.log.aspect.ServiceLogAspect;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @author meetzy
 */
@ComponentScan
@Configuration
@EnableAspectJAutoProxy(proxyTargetClass = true)
public class LogConfig {

    @Bean
    @ConditionalOnProperty(prefix = "core.log", name = "auto", havingValue = "true")
    public ServiceLogAspect controllerLogAspect() {
        return new ServiceLogAspect();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy