Spring AOP 配置的十九个关键元素

context:component-scan base-pakage

aop:aspectj-autoproxy 

Aomponent

Aspect

Before

Arround

After

AfterReturning

AfterThrowing

ProceedJoinPoint.proceed

Pointcut(value="execution(* com.life.user.add(..))")

Order(1)

Configuration

ComponentScan(basePackages = {" "})

EnableAspectJAutoProxy

aop:config

aop:pointcut id expression

aop:aspect ref

aop:before method pointcut-ref

 

posted on 2022-03-24 18:14  金满仓  阅读(35)  评论(0编辑  收藏  举报

导航