white knight

导航

 
@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();
  }
}

 

posted on 2018-04-12 14:31  white knight  阅读(157)  评论(0编辑  收藏  举报