Class AopAutoConfiguration


  • @Configuration
    @ConditionalOnClass({org.springframework.context.annotation.EnableAspectJAutoProxy.class,org.aspectj.lang.annotation.Aspect.class,org.aspectj.lang.reflect.Advice.class,org.aspectj.weaver.AnnotatedElement.class})
    @ConditionalOnProperty(prefix="spring.aop",
                           name="auto",
                           havingValue="true",
                           matchIfMissing=true)
    public class AopAutoConfiguration
    extends Object
    Auto-configuration for Spring's AOP support. Equivalent to enabling EnableAspectJAutoProxy in your configuration.

    The configuration will not be activated if spring.aop.auto=false. The proxyTargetClass attribute will be true, by default, but can be overridden by specifying spring.aop.proxy-target-class=false.

    See Also:
    EnableAspectJAutoProxy