I have next interface and implementation:
@Step
public interface TestAopComp {
void test();
}
@Component
public class TestAopCompImpl implements TestAopComp{
public void test(){
System.out.println("test");
}
}
I need intercept execution of all methods of classes, which extends classes with annotation @Step. Please help me write pointcut.
For example I use next pointcut for intercept methods of classes, which annotated by @Step:
@Pointcut("@within(Step)")
But it does not work, if I annotate only super class