You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
684 B
28 lines
684 B
package org.pqh.core.aop;
|
|
|
|
import org.aspectj.lang.JoinPoint;
|
|
import org.aspectj.lang.annotation.Aspect;
|
|
import org.aspectj.lang.annotation.Before;
|
|
import org.aspectj.lang.annotation.Pointcut;
|
|
import org.pqh.core.util.LogManger;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
/**
|
|
* Created by reborn on 2017/8/3.
|
|
*/
|
|
@Aspect
|
|
@Component
|
|
public class LogAspect implements LogManger {
|
|
|
|
@Before(value = "biliDaoRule()")
|
|
public void curdCallAction(JoinPoint joinPoint) {
|
|
for (Object arg : joinPoint.getArgs()) {
|
|
log.info("参数" + arg);
|
|
}
|
|
}
|
|
|
|
@Pointcut("execution(* org.pqh.core.dao.BaseDao.*(..))")
|
|
public void biliDaoRule() {
|
|
}
|
|
|
|
}
|
|
|