2

I am trying to override the default task executor used by the RequestMappingHandlerAdapter bean in a SpringBoot/SpringMVC application.

The javadocs recommend to replace the use of the default but do not give any indication on how to do this nor can I find anything in the SpringBoot documentation.

yole
  • 92,896
  • 20
  • 260
  • 197
Bob Lukens
  • 700
  • 6
  • 10

1 Answers1

4

The WebMvcConfigurer has a callback for configuring async support (https://github.com/spring-projects/spring-framework/blob/master/spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurer.java#L92).

Dave Syer
  • 56,583
  • 10
  • 155
  • 143
  • Thanks - worked, I also found this article with code sample - http://stackoverflow.com/questions/28800842/spring-boot-any-shortcuts-for-setting-taskexecutor – Bob Lukens Mar 27 '15 at 13:10