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 to use on `application.properties` file, but you need to add `spring.` prefix to it for springboot 2 like @pdem marked in this answer comments <https://stackoverflow.com/a/39244097/273119>. 

> 
> spring.flyway.baseline-on-migrate=true
> 
> 
>
Answer of Seth is worked for me.
But I changed

```
flyway.setBaselineOnMigrate(true);

```

for

```
flyway.baseline();

```