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

top.gotoeasy.framework.spring.aop.configuration.AopConfiguration Maven / Gradle / Ivy

Go to download

基于JavaCompiler的继承方式AOP实现,在性能优良的基础上,提供更多的简易性,2.x.x版本集成使用Spring容器

The newest version!
package top.gotoeasy.framework.spring.aop.configuration;

import org.aspectj.lang.annotation.Aspect;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import top.gotoeasy.EnableAop;

/**
 * 配置类
 * 
 * @since 2018/01
 * @author 青松
 */
@Configuration("top.gotoeasy.framework.spring.aop.configuration.AopConfiguration")
@ComponentScan(basePackageClasses = { EnableAop.class })
public class AopConfiguration {

    @Bean("$hasAspect")
    @ConditionalOnClass({ Aspect.class })
    public boolean hasAspectTrue() {
        return true;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy