我試圖實現AOP,但是當我實現org.springframework.aop.MethodBeforeAdvice
接口,然後HijackBeforeMethod
類在Eclipse ID中給出不一致的錯誤。類HijackBeforeMethod類型的層次結構不一致
package aop;
import java.lang.reflect.Method;
public class HijackBeforeMethod implements org.springframework.aop.MethodBeforeAdvice{
@Override
public void before(Method arg0, Object[] arg1, Object arg2)
throws Throwable {
// TODO Auto-generated method stub
}
}
什麼是錯誤? – 2013-02-11 08:27:06
這個編譯錯誤出現在類路徑所需的庫缺失的類路徑 – 2013-02-11 08:47:13