mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-19 18:45:03 +08:00
update 代码重构
This commit is contained in:
@@ -45,9 +45,8 @@ public class CostTimeAspect {
|
|||||||
try {
|
try {
|
||||||
return joinPoint.proceed();
|
return joinPoint.proceed();
|
||||||
} finally {
|
} finally {
|
||||||
long endTime = System.currentTimeMillis();
|
long timeConsumed = System.currentTimeMillis() - startTime;
|
||||||
long timeConsumed = endTime - startTime;
|
logger.info("统计方法耗时, 方法:[{}], 耗时: [{}ms]", joinPoint.getSignature().toShortString(), timeConsumed);
|
||||||
logger.info("方法 {} 耗时 {} 毫秒", joinPoint.getSignature().toShortString(), timeConsumed);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user