User Tools

Site Tools


java:aop-related

一个pointcut设置多个execution

  @Pointcut("execution(* com.platform.web.controller..*.*(..)) "
      + "|| execution(* com.platform.api.controller..*.*(..))")
  public void executeService() {
  }
 
  @Around("executeService()")
  public Object doAround(ProceedingJoinPoint pjp) {
      return result;
  }
java/aop-related.txt · Last modified: 2020/10/27 01:21 by 127.0.0.1

Except where otherwise noted, content on this wiki is licensed under the following license: 沪ICP备12046235号-2
Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki