gpt4 book ai didi

sql - Flyway:无法确定类路径位置的 URL

转载 作者:行者123 更新时间:2023-12-04 20:55:33 24 4
gpt4 key购买 nike

我正在使用 flyway 迁移我的 SQL 脚本。我已将 flyway 配置文件配置为指向我保存迁移 .sql 脚本的/tmp/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 迁移脚本保存在一个单独的位置并尝试从那里迁移。

谢谢,马尼什·乔希

最佳答案

确保 flyway.locations 设置为 filesystem:/tmp/sql

关于sql - Flyway:无法确定类路径位置的 URL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27376388/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com