我正在使用flyway来迁移我的SQL脚本 . 我已将flyway配置文件配置为指向/ tmp / sql目录,其中我保留了迁移.sql脚本 .
现在,当我运行飞路时,它给出了以下错误:
ERROR: Unable to scan for SQL migrations in location: classpath:tmp/sql"/>
ERROR: Caused by: org.flywaydb.core.api.FlywayException: Unable to determine URL for classpath location: tmp/sql"/> (ClassLoader: java.net.URLClassLoader@2da679b7)
ERROR: Occured in org.flywaydb.core.internal.util.scanner.classpath.ClassPathScanner.getLocationUrlsForPath() at line 192
现在如果我让属性flyway.locations保持不变并将我的sql迁移脚本保存在文件系统中:Flyway-INSTALL-DIR / sql它工作正常 .
谁能让我知道可能是什么问题?
我想将sql迁移脚本保存在一个单独的位置,并尝试从那里迁移 .
谢谢,Manish Joshi
1 回答
确保将flyway.locations设置为filesystem:/ tmp / sql