码迷,mamicode.com
首页 > 编程语言 > 详细

springboot 面向切面

时间:2018-04-12 15:20:46      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:pre   面向   get   color   npoi   ring   roc   ble   div   

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

 

springboot 面向切面

标签:pre   面向   get   color   npoi   ring   roc   ble   div   

原文地址:https://www.cnblogs.com/white-knight/p/8807587.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!