public class AspectLog extends Object
EnableAspectScope
@Bean
public AspectLog aspectLog()
{
return new AspectLog();
}
可以继承此类, 来覆写before(org.aspectj.lang.JoinPoint), around(org.aspectj.lang.ProceedingJoinPoint), after(org.aspectj.lang.JoinPoint)
Before, Around, After| 限定符和类型 | 字段和说明 |
|---|---|
private Map<String,MethodCallInfo> |
mapMethodCall |
private ThreadLocal<Long> |
startTime |
| 构造器和说明 |
|---|
AspectLog() |
private ThreadLocal<Long> startTime
private Map<String,MethodCallInfo> mapMethodCall
private void methodAnnotationScope()
protected void before(org.aspectj.lang.JoinPoint point)
protected Object around(org.aspectj.lang.ProceedingJoinPoint point) throws Throwable
Throwableprotected void after(org.aspectj.lang.JoinPoint point)
Copyright © 2019. All rights reserved.