example:
@Component
public class ExecutionClass extends ExtensionClass{
public void doSomething(@MyAnnotation String hello){
doSuperTask(hello);
}
}
public class ExtensionClass{
public void doSuperTask(@AnotherAnnotation String hello){
doAnotherTask(hello);
}
public void doAnotherTask(@YetAnotherAnnotation String hello){
//do some stuff
}
}
@Override
@Around("execution(public * com.test..*(..))")
public Object invoke(ProceedingJoinPoint proceedingJoinPoint) throws Throwable {
//invoke whatever around method
}
However, this results in only ExecutionClass#doSomething
AOP to be in effect, while the rest are ignored. How to fix and make the interceptor intercept every public method?
All have the package of com.test.**