Spring AOP (Aspect-oriented programming) framework is used to modularize cross-cutting concerns in aspects. Put it simple, it’s just an interceptor to intercept some processes, for example, when a method is execute, Spring AOP can hijack the executing method, and add extra functionality before or after the method execution.
1. Before advice (implements MethodBeforeAdvice)
2. After returning advice (implements AfterReturningAdvice)
3. After throwing advice (implements ThrowsAdvice)
4. Around advice (implements MethodInterceptor)
5.joint point
6. pointcut
No comments:
Post a Comment