title: Spring Boot - Any shortcuts for setting TaskExecutor?
body: <p>Just wanted to check in to see if anyone had a faster way to set the TaskExecutor for Spring MVC within spring boot (using auto configuration).  This is what I have so far:</p>
  
  <pre><code>@Bean
  protected ThreadPoolTaskExecutor mvcTaskExecutor() {
      ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
      executor.setThreadNamePrefix("my-mvc-task-executor-");
      executor.setCorePoolSize(5);
      executor.setMaxPoolSize(200);
      return executor;
  }
  
  @Bean
  protected WebMvcConfigurer webMvcConfigurer() {
      return new WebMvcConfigurerAdapter() {
          @Override
          public void configureAsyncSupport(AsyncSupportConfigurer configurer) {
              configurer.setTaskExecutor(mvcTaskExecutor());
          }
      };
  }
  </code></pre>
  
  <p>Does anyone have a better/faster way to do this?</p>
  
  <p>-Joshua</p>