https://juejin.cn/post/7322738137301090315?from=search-suggest#heading-37
在实际使用Spring AOP时,开发者通常遵循以下步骤:
@Aspect注解定义一个类作为切面。@Before、@AfterReturning、@AfterThrowing、@After和@Around声明不同类型的通知。@Pointcut注解定义通用的切点表达式,这样可以在不同的通知中重用。@EnableAspectJAutoProxy注解,以启用对AspectJ自动代理的支持。