经测试,是环绕通知改变了返回值,切面方法需要有返回值,来代替被代理方法返回结果
改成如下即可:
@Around("point_update()")
public Object update(ProceedingJoinPoint jp) throws Throwable{
...
Object result = jp.proceed();
...
return result;
}
让其执行后的结果返回即可。
经测试,是环绕通知改变了返回值,切面方法需要有返回值,来代替被代理方法返回结果
改成如下即可:
@Around("point_update()")
public Object update(ProceedingJoinPoint jp) throws Throwable{
...
Object result = jp.proceed();
...
return result;
}
让其执行后的结果返回即可。