Spring / Spring AOP
What are the types of Advice in Spring AOP?
There are 5 types of Advice.
- Before Advice. Advice that is executed prior to a joinpoint.
- After returning advice. Advice that is executed after the normal completion of a joinpoint.
- After throwing advice. Advice that is executed only if a method exits abnormally by throwing an exception.
- Finally advice. Advice that is executed irrespective of how a joinpoint exit.
- Around advice. Advice that borders a joinpoint, for example, a method invocation. Advice can execute before and after the invocation of method.
More Related questions...