目的:项目中,通过这注解切入,拦截所有用户update的操作,但发现完成后,原本的update方法不执行;
请教大神们是哪个地方用错了,或是怎么解决?
@Pointcut("execution(* com.*.ps.dao.*Dao.update*(..))")
public void updateMethod() {
}
@Around(value = "updateMethod()")
public int around(ProceedingJoinPoint joinPoint) throws NoSuchMethodException, SecurityException {
/**
*这是业务处理的代码
*
*/
return 1;
}
请教大神们是哪个地方用错了,或是怎么解决?
@Pointcut("execution(* com.*.ps.dao.*Dao.update*(..))")
public void updateMethod() {
}
@Around(value = "updateMethod()")
public int around(ProceedingJoinPoint joinPoint) throws NoSuchMethodException, SecurityException {
/**
*这是业务处理的代码
*
*/
return 1;
}