為啥我沒輸出時間呢,其他都是正常
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;
}
2017-03-12
攔截器可能在XML文件中沒注冊,或者引用!