系统日志/业务日志
This commit is contained in:
parent
d8a19437ff
commit
992dce35e8
|
|
@ -81,6 +81,10 @@
|
||||||
<artifactId>commons-lang</artifactId>
|
<artifactId>commons-lang</artifactId>
|
||||||
<version>2.1</version>
|
<version>2.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.securitycontrol</groupId>
|
||||||
|
<artifactId>securitycontrol-commons-log</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -248,23 +248,4 @@ public class OperLogAspect {
|
||||||
public boolean isFilterObject(final Object o) {
|
public boolean isFilterObject(final Object o) {
|
||||||
return o instanceof HttpServletRequest || o instanceof HttpServletResponse;
|
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();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue