From 992dce35e8e05f1ad4055ce34debce403c22c9ee Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Thu, 29 Feb 2024 14:16:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E6=97=A5=E5=BF=97/=E4=B8=9A?= =?UTF-8?q?=E5=8A=A1=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- securitycontrol-auth/pom.xml | 4 ++++ .../common/log/aspect/OperLogAspect.java | 19 ------------------- 2 files changed, 4 insertions(+), 19 deletions(-) diff --git a/securitycontrol-auth/pom.xml b/securitycontrol-auth/pom.xml index cdb20dc..98ed0c6 100644 --- a/securitycontrol-auth/pom.xml +++ b/securitycontrol-auth/pom.xml @@ -81,6 +81,10 @@ commons-lang 2.1 + + com.securitycontrol + securitycontrol-commons-log + diff --git a/securitycontrol-commons/securitycontrol-commons-log/src/main/java/com/securitycontrol/common/log/aspect/OperLogAspect.java b/securitycontrol-commons/securitycontrol-commons-log/src/main/java/com/securitycontrol/common/log/aspect/OperLogAspect.java index 776f47a..5d75c73 100644 --- a/securitycontrol-commons/securitycontrol-commons-log/src/main/java/com/securitycontrol/common/log/aspect/OperLogAspect.java +++ b/securitycontrol-commons/securitycontrol-commons-log/src/main/java/com/securitycontrol/common/log/aspect/OperLogAspect.java @@ -248,23 +248,4 @@ public class OperLogAspect { public boolean isFilterObject(final Object o) { return o instanceof HttpServletRequest || o instanceof HttpServletResponse; } - - - /** - * 用于未定义log注解,抛出异常也需要记录耗时情况 - * @param joinPoint - * @description - * @author cwchen - * @date 2024/2/29 10:51 - */ - @Before("operExceptionLogPointCut()") - public void beforeMethod(JoinPoint joinPoint) { - currentTime.set(System.currentTimeMillis()); - } - - @After("operExceptionLogPointCut()") - public void afterMethod(JoinPoint joinPoint) { - currentTime.remove(); - } - } \ No newline at end of file