Flyway failed to initialize: none of the following migration scripts

[已解决]数据库版本变更管理工具Flyway启动出现异常:Flyway failed to initialize: none of the following migration scripts。

Description:

Flyway failed to initialize: none of the following migration scripts locations could be found:

 - classpath:db/migration


Action:

Review the locations above or check your Flyway configuration

解决方法:

在classpath:db/migration目录下放置一个xxx.sql文件。

或者禁用该功能:

spring.flyway.enabled=false
spring.flyway.baseline-on-migrate=false