org.springframework.web.method.support.AsyncHandlerMethodReturnValueHandler Java Examples

The following examples show how to use org.springframework.web.method.support.AsyncHandlerMethodReturnValueHandler. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AsyncConfig.java    From microservices-sample-project with Apache License 2.0 5 votes vote down vote up
@Bean
public WebMvcConfigurer rxJavaWebMvcConfiguration(List<AsyncHandlerMethodReturnValueHandler> handlers) {
    return new WebMvcConfigurerAdapter() {
        @Override
        public void addReturnValueHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers) {
            if (handlers != null) {
                returnValueHandlers.addAll(handlers);
            }
        }
    };
}
 
Example #2
Source File: SearchBoxConfiguration.java    From searchbox-core with Apache License 2.0 5 votes vote down vote up
@Bean
public WebMvcConfigurer rxJavaWebMvcConfiguration(List<AsyncHandlerMethodReturnValueHandler> handlers) {
    return new WebMvcConfigurerAdapter() {
        @Override
        public void addReturnValueHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers) {
            if (handlers != null) {
                returnValueHandlers.addAll(handlers);
            }
        }
    };
}