📄 mysimpleataspectjaspect.java
字号:
package com.apress.springbook.chapter04.aspects;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
@Aspect
public class MySimpleAtAspectJAspect {
@Before("execution(* relax(..))")
public void beforeRelaxingMethod() {
System.out.println("relax() method is about to be executed!");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -