1、什么是AOP

2、AOP的相关术语



3、基于XML的AOP实现
(1)pom.xml导入jar包

(2)bean.xml配置
aop:config、aop:apect标签

切入点execution表达式


4、四种常用的通知类型及环绕通知
前置通知aop:before、后置通知aop:after-returning、异常通知aop:after-throwing、最终通知aop:after、环绕通知aop:around

aop:pointcut标签配置切入点表达式

环绕通知(可以在代码中手动控制增强方法何时执行的方式)

ProoceedingJoinPoint接口以及proceed()方法

5、基于注解的AOP实现
bean.xml

@Aspect、@Pointcut、@Before、@AfterReturning、@AfterThrowing、@After
后置通知和异常通知互斥


714

被折叠的 条评论
为什么被折叠?



