Spring AOP advice order
- by Chetter Hummin
In Spring AOP, I can add an aspect at the following locations
before a method executes (using MethodBeforeAdvice)
after a method executes (using AfterReturningAdvice)
around a method (both before and after a method executes) (using MethodInterceptor)
If I have all three types of advice, is the order of execution always as follows?
Around (before part)
Before
Method itself
After
Around (after part)