In consequence this means refactoring the code when relying on Spring AOP and its proxy mode technique or switching the mode from "proxy" to "aspectj" <cache:annotation-driven mode="aspectj"/>
. This allows using self-invoking methods within the same class as AOP does static respectively dynamic weaving and so manipulates the byte code directly.
Read full article from Unrecognized Spring cache annotations when self-invoking a method from within the same bean - Stack Overflow
No comments:
Post a Comment