①Spring-Aop拦截ACTION中的方法,但是运行时AOP会拦截我Action中所有的私有属性的一些get,set方法。
有待解决!
该问题已经解决!
public class LogInterceptor {
@Pointcut("execution (* com.zjlolife.action.UserAction.*(..))")
private void anyMethod() {};
@Pointcut("execution (* com.zjlolife.action.UserAction.*et*(..))")
private void noInterceptorMethod() {};
@Pointcut("anyMethod()&&!noInterceptorMethod()")
private void InterceptorMethod() {};
@Around("InterceptorMethod()")
public Object doBasicProfiling(ProceedingJoinPoint pjp) throws Throwable{