title: Spring boot disable @EnableAsync for integration tests
body: <p>I would like to disable <code>@EnableAsync</code> when I run my integration tests.</p>
  
  <p>I tried to override the configuration file which is annotated with <code>@EnableAsync</code> with a class with the same name in my test package but it does not work.</p>
  
  <p>In this topic: <a href="https://stackoverflow.com/questions/42134750/is-it-possible-to-disable-springs-async-during-integration-test">Is it possible to disable Spring&#39;s @Async during integration test?</a></p>
  
  <p>I have seen that:</p>
  
  <blockquote>
    <p>You can... Create a test configuration or simply override the task executor with a SyncTaskExecutor</p>
  </blockquote>
  
  <p>but I do not understand how to do.</p>
  
  <p>Any advice ? Thanks</p>