官网关闭了,难得找到资源,分享出来 public class PerformanceAnalysis { public Object aroundMethod(JoinPoint joinPoint) throws Throwable { long begin = System.currentTimeMillis(); Object obj = joinPoint.proceed(); long end = System.nanoTime(); System.out.println("duration " + joinPoint.getSignature() + " " + (end-begin)); return obj; } } aspectwerkz.xml