类的使用
org.springframework.web.servlet.config.annotation.AsyncSupportConfigurer
使用AsyncSupportConfigurer的程序包 程序包 说明 org.springframework.web.servlet.config.annotation Annotation-based setup for Spring MVC.org.springframework.web.servlet.config.annotation中AsyncSupportConfigurer的使用
返回AsyncSupportConfigurer的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 AsyncSupportConfigurer
AsyncSupportConfigurer. registerCallableInterceptors(CallableProcessingInterceptor... interceptors)
Configure lifecycle interceptors with callbacks around concurrent request execution that starts when a controller returns aCallable
.AsyncSupportConfigurer
AsyncSupportConfigurer. registerDeferredResultInterceptors(DeferredResultProcessingInterceptor... interceptors)
Configure lifecycle interceptors with callbacks around concurrent request execution that starts when a controller returns aDeferredResult
.AsyncSupportConfigurer
AsyncSupportConfigurer. setDefaultTimeout(long timeout)
Specify the amount of time, in milliseconds, before asynchronous request handling times out.AsyncSupportConfigurer
AsyncSupportConfigurer. setTaskExecutor(AsyncTaskExecutor taskExecutor)
The provided task executor is used to: HandleCallable
controller method return values.参数类型为AsyncSupportConfigurer的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 protected void
DelegatingWebMvcConfiguration. configureAsyncSupport(AsyncSupportConfigurer configurer)
protected void
WebMvcConfigurationSupport. configureAsyncSupport(AsyncSupportConfigurer configurer)
Override this method to configure asynchronous request processing options.default void
WebMvcConfigurer. configureAsyncSupport(AsyncSupportConfigurer configurer)
Configure asynchronous request handling options.void
WebMvcConfigurerAdapter. configureAsyncSupport(AsyncSupportConfigurer configurer)
已过时。Configure asynchronous request handling options.