Solution of no return value after using AOP's @Around

The proceed of the ProceedingJoinPoint object will execute the method surrounded by the aspect. It is necessary to set the return object of the @Around method in the aspect class to be consistent with the proxy method.
as follows

	@Around("point_update()")
	public Object update(ProceedingJoinPoint jp) throws Throwable{
    
    
	 ...
	 Object result = jp.proceed();
	 ...
	 return result;
	}

This can lead to a question: the execution process of AOP

おすすめ

転載: blog.csdn.net/weixin_44225096/article/details/127211220