Spring aspect call on custom annotation on interface method
问题 I have this interface: public interface FakeTemplate { @CustomAnnotation void foo() { } } And this implementation of the interface: @Component public FakeImpl implements FakeTemplate { @Override public void foo() { //Do Stuff } } And this aspect: @Aspect @Component public class CustomAspect { @Before(value = "@annotation(com.fake.CustomAnnotation)") public void doStuffBefore(JoinPoint joinPoint} { } } I'm using spring with AspectJ enabled using: @EnableAspectJAutoProxy(proxyTargetClass = true