AspectJ annotation-based and based on xml

First, the specific pointcut method returns a value, the method performs rear ends immediately notified, and then execute the code following the release of around advice;

 

 

 

 2, i.e., all possible points of connection methods, the entry point is a positive real cut method, a connection point name of the method:

 

 Of these, only around the pointcut parameter is not notified, it is the entry point can be released;

3, the abnormality notification processing is abnormal;

 

 

 

 Method Parameter Name Parameter List class section of abnormal abnormality notification parameters;

 

 

 

 4, final notice, whether or not an exception will be executed,

Rear notification: AOP: after-Returnning

Exception notification: AOP: after-Throwing

The final notice: AOP: after

 5, the rear notification method for obtaining a return value

 

 

 

 three,

 

Guess you like

Origin www.cnblogs.com/wmqiang/p/11617242.html