Question: Spring Boot's FlywayProperties.java supports many of the Flyway settings but not 'baselineVersion' or 'baselineOnMigrate'. I am converting an existing application to Flyway and these setting appear to be designed for this purpose. Our production environment is highly controlled and running a commandline version of flyway there to achieve this is not practical.

Is creating a custom Flyway @Bean the only option here?

Answer: 
You can set *any* of flyways properties be prefixing them with `flyway` in your `application.yml/.properties`.

It is made possible by `org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration.FlywayConfiguration#flyway` which is annotated with `@ConfigurationProperties(prefix = "flyway")`.

If you are using an `application.yml` add the following:

```
spring:
  flyway:
    baselineOnMigrate: true

```

If using an `application.properties` add the following:

```
spring.flyway.baselineOnMigrate = true

```

**Update**: added prefix `spring` (see @pdem comment).
After digging into the source and running some experiments, it would appear that because the setBaselineVersion() is overloaded in the Flyway class, Spring is unable to inject the property value. 

Changing to *flyway.baselineVersionAsString*=2 works as desired.