SpringMVC异步处理 可使用的返回值类型
作者:互联网
CallableMethodReturnValueHandler Callable.class.isAssignableFrom(returnType.getParameterType()); DeferredResultMethodReturnValueHandler (DeferredResult.class.isAssignableFrom(type) || ListenableFuture.class.isAssignableFrom(type) || CompletionStage.class.isAssignableFrom(type)); AsyncTaskMethodReturnValueHandler WebAsyncTask.class.isAssignableFrom(returnType.getParameterType());
标签:异步,SpringMVC,isAssignableFrom,ListenableFuture,getParameterType,returnType,返回值,t 来源: https://www.cnblogs.com/hfultrastrong/p/11881407.html