public class LogService extends Object
| 构造器和说明 |
|---|
LogService() |
LogService(LogProperties properties) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPrint(org.aspectj.lang.JoinPoint joinPoint,
Object returnValue) |
Object |
aroundPrint(org.aspectj.lang.ProceedingJoinPoint joinPoint)
调用controller包下的任意类的任意方法时均会调用此方法
execution: 切入点表达式
|
void |
beforePrint(org.aspectj.lang.JoinPoint joinPoint) |
static Object |
getAnnotationValue(Annotation annotation,
String property)
获取该注解对象的属性值
|
static <T> Object |
getFieldValue(T object,
String property) |
public LogService()
public LogService(LogProperties properties)
public void beforePrint(org.aspectj.lang.JoinPoint joinPoint)
throws Throwable
Throwablepublic void afterPrint(org.aspectj.lang.JoinPoint joinPoint,
Object returnValue)
throws Throwable
Throwablepublic Object aroundPrint(org.aspectj.lang.ProceedingJoinPoint joinPoint) throws Throwable
Throwablepublic static Object getAnnotationValue(Annotation annotation, String property)
annotation - property - Copyright © 2020. All rights reserved.