issues
search
baiwyc119
/
Server-Practices
personal learch note
0
stars
0
forks
source link
Note2:Spring In Action,4th Edition
#2
Open
baiwyc119
opened
5 years ago
baiwyc119
commented
5 years ago
AOP术语:通知(adivce),切点(pointcut)和连接点(join point)
通知
前置通知(Before):在目标方法被调用之前调用通知功能;
后置通知(After): 在目标方法完成之后调用通知,此时不会关心方法的输出是什么;
返回通知(After-returning):在目标方法成功执行之后调用通知;
异常通知(After-throwing):在目标方法抛出异常后调用通知;
环绕通知(Around):通知包裹了被通知的方法,在被通知的方法调用之前和调用之后执行自定义的行为。
通知