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