How to exclude/disable a specific auto-configuration in Spring boot 1.4.0 for @DataJpaTest? : <p>I am using the @DataJpaTest from Spring for my test which will then use H2 as in memory database as <a href="https://spring.io/blog/2016/04/15/testing-improvements-in-spring-boot-1-4#testing-the-jpa-slice" rel="noreferrer">described here</a> . I'm also using Flyway for production. However once the test starts FLyway kicks in and reads the SQL file. How can I exclude the FlywayAutoConfiguration and keep the rest as described <a href="http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#test-auto-configuration" rel="noreferrer">here in spring documentation</a> in order to let Hibernate create the tables in H2 for me? </p>

<pre><code>@RunWith(SpringRunner.class)
@DataJpaTest
public class MyRepositoryTest {

    @Autowired
    private TestEntityManager entityManager;

    @Autowired
    private MyRepository triggerRepository;
}
</code></pre>
