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).
Answer of Seth is worked for me.
But I changed

```
flyway.setBaselineOnMigrate(true);

```

for

```
flyway.baseline();

```