@SpringBootApplication @EnableMatrixAop public class Application { } @MatrixAop(pointcut = "execution(* com.example.service.*.*(..))", adviceType = AdviceType.BEFORE) public class MyAspect { @Before public void beforeMethod(JoinPoint joinPoint) { } } matrix.aop.aspect.clazzes=com.example.aspect.MyAspect1,\ com.example.aspect.MyAspect2 matrix.aop.aspect.MyAspect1.pointcut=@annotation(com.example.annotation.MyAnnotation) matrix.aop.aspect.MyAspect1.adviceType=BEFORE matrix.aop.aspect.MyAspect1.beforeRef=beforeMethodRef matrix.aop.aspect.MyAspect2.pointcut=execution(* com.example.service.*.*(..)) matrix.aop.aspect.MyAspect2.adviceType=AFTER matrix.aop.aspect.MyAspect2.afterRef=afterMethodRef


上一篇:
下一篇:
切换中文