@Target({ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface MyAnnotation { } @Aspect public class MyAspect { @Around("@annotation(com.example.MyAnnotation)") public Object myAdvice(ProceedingJoinPoint proceedingJoinPoint) throws Throwable { // ... Object result = proceedingJoinPoint.proceed(); // ... return result; } } matrix.logger.silent.enabled=true matrix.aop.scan.packages=com.example


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