|
@@ -75,7 +75,7 @@ public class LogAspect {
|
|
private void afterMethod(JoinPoint joinPoint,Stopwatch stopwatch,Object result) {
|
|
private void afterMethod(JoinPoint joinPoint,Stopwatch stopwatch,Object result) {
|
|
MethodSignature signature = (MethodSignature)joinPoint.getSignature();
|
|
MethodSignature signature = (MethodSignature)joinPoint.getSignature();
|
|
Method method = signature.getMethod();
|
|
Method method = signature.getMethod();
|
|
- log.info("方法名: [" + method.getName() + "]"
|
|
|
|
|
|
+ log.info("方法名: [" + method.getDeclaringClass() + "." + method.getName() + "]"
|
|
+ "--返回值: [" + object2String(result) + "]"
|
|
+ "--返回值: [" + object2String(result) + "]"
|
|
+ "--执行时间: [" + stopwatch.elapsed(TimeUnit.MILLISECONDS) + "ms].");
|
|
+ "--执行时间: [" + stopwatch.elapsed(TimeUnit.MILLISECONDS) + "ms].");
|
|
|
|
|