切点(Pointcut)切入方式

方法切点

  • execution,作用方法,最常用。指定方法返回类型,类名,方法名,参数名等与方法相关的部件。
  • @annotation,作用方法。方法注解类名

目标类切点

  • within,作用目标类。指定全路径类名。
  • target,作用目标类。指定类名。
  • @within,作用目标类。类型注解类名。
  • @target,作用目标类。类型注解类名。

方法入参切点

  • args,作用参数。指定全路径的类名。
  • @args,作用参数。类型注解类名。

代理类切点

  • this,作用代理类。类名。
原文地址:https://www.cnblogs.com/ivy-xu/p/12602422.html