'Spring Webflux - AOP - How to get extract mono object from request body in aspect funtion

In aspect function called over controller, I am trying to extract the Mono object (request body) via jointPoint.getArgs(). All I can get by logging the arguments in "Monolift" instead of the json object.

//function

public Object aspectForSomething(ProceedingJoinPoint point) throws Throwable {
Object[] args = point.getArgs();
log.info(args);
// the rest of the code
}

//Output

[ paramValuse..., **MonoLift**,.. ]

How I can extract the object (i.e. Monolift) json or values?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source