系统日志/业务日志

This commit is contained in:
cwchen 2024-02-29 14:16:34 +08:00
parent d8a19437ff
commit 992dce35e8
2 changed files with 4 additions and 19 deletions

View File

@ -81,6 +81,10 @@
<artifactId>commons-lang</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>com.securitycontrol</groupId>
<artifactId>securitycontrol-commons-log</artifactId>
</dependency>
</dependencies>

View File

@ -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();
}
}