public String intercept(ActionInvocation invocation) throws Exception {
long start=System.currentTimeMillis();
String result=invocation.invoke();
long end=System.currentTimeMillis();
System.out.println("时间:"+(end-start));
return result;
}
拦截器可能在XML文件中没注册,或者引用!