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

com.myb.JdLogAutoConfiguration Maven / Gradle / Ivy

package com.myb;

import com.myb.aop.LogAspectjProcess;
import com.myb.config.LogProperties;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @Author meiyubin
 * @Date 2023/11/23
 * @DESC
 */
@Configuration
@ComponentScan("com.myb")
@ConditionalOnProperty(prefix = "jd",name = "enable",havingValue = "true",matchIfMissing = false)
@EnableConfigurationProperties({LogProperties.class})
public class JdLogAutoConfiguration {
    @Bean
    public LogAspectjProcess myAspect() {
        return new LogAspectjProcess();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy