我已经实现了spring AOP,它将在invoke()上获得延迟的结果。当我尝试将其强制转换为自定义响应对象时,我得到一个空值。
Object response = mi.proceed();
//The response object exist1
//org.springframework.web.context.request.async.DeferredResult@c
CustomResponse customResponse = (CustomResponse) ((DeferredResult) response).getResult();
//customResponse is coming as null
任何建议