springboot 面向切面

@Aspect
@Configuration
public class AspectTest {
  @Pointcut("execution(public String xxx.xxx.xxx.Controller+.method1(..))")
  public void xxxxx() {}

  @Around("xxxxx()")
  public Object executeBeforexxxxx(ProceedingJoinPoint pjp) throws Throwable {
    Object param1 = pjp.getArgs()[0];
    
    return pjp.proceed();
  }
}
原文地址:https://www.cnblogs.com/white-knight/p/8807587.html