📜  Spring AOP-咨询类型

📅  最后修改于: 2020-11-11 05:15:48             🧑  作者: Mango


春季方面可以使用下表中提到的五种建议。

Sr.No. Advice & Description
1

before

Run advice before the method execution.

2

after

Run advice after the method execution, regardless of its outcome.

3

after-returning

Run advice after the method execution, only if the method completes successfully.

4

after-throwing

Run advice after the method execution, only if the method exits by throwing an exception.

5

around

Run advice before and after the advised method is invoked.