多个execution用“||”进行拼接
代码如下:
@Pointcut("@annotation(org.springframework.web.bind.annotation.PostMapping) || execution(public * com.ljxx.nmpa.*.controller.*.*(..))") public void aspect() { }
多个execution用“||”进行拼接
代码如下:
@Pointcut("@annotation(org.springframework.web.bind.annotation.PostMapping) || execution(public * com.ljxx.nmpa.*.controller.*.*(..))") public void aspect() { }