title: Disable Flyway on Spring Boot 2
body: <p>I've been trying to disable Flyway for my unit tests on Spring Boot 2, but could not succeed.</p>
  
  <p>I understand, from Spring Boot's documentation, that the property for doing so changed from <code>flyway.enabled</code> to <code>spring.flyway.enabled</code>, and added that to my test application profile (as below).</p>
  
  <pre><code>spring:
    datasource:
      url: jdbc:h2:mem:db
    jpa:
      hibernate:
        ddl-auto: create
    flyway:
      enabled: false
  </code></pre>
  
  <p>This configuration appears to have no effect at all, and Flyway auto-configuration is still invoked.</p>
  
  <p>I also tried creating a separate auto-configuration class for the unit tests only, where I added <code>@EnableAutoConfiguration(exclude = FlywayAutoConfiguration.class)</code>, but this try failed as much as the previous one.</p>