aspectj - Spring AOP Pointcut not called - Stack Overflow
@Aspect
annotate classes aren't automatically detected by Spring and because it isn't detected it isn't known to the <aop:aspectj-autoproxy />
beans. So basically there is no aspect.
Either add @Component
to your @Aspect
annotated class(es) so that Spring can detect and use the aspect.
Read full article from aspectj - Spring AOP Pointcut not called - Stack Overflow
No comments:
Post a Comment