?? testbeforeadvice.java
字號:
package simon.tools.aop;
import java.lang.reflect.Method;
import org.springframework.aop.MethodBeforeAdvice;
import org.springframework.aop.AfterReturningAdvice;
public class TestBeforeAdvice
implements MethodBeforeAdvice {
public void before(Method m, Object[] args, Object target) throws Throwable {
System.out.print("Hello world! (by " + this.getClass().getName() + ")");
System.out.println("the para1 is: "+args[0]);
}
class LogAdvice implements AfterReturningAdvice {
public void afterReturning(Object returnObject, Method method,
Object[] paras, Object instanceObject) {
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -