运行 Liquibase springboot 应用程序时 master.yaml 异常
Posted
技术标签:
【中文标题】运行 Liquibase springboot 应用程序时 master.yaml 异常【英文标题】:Exception for master.yaml while running Liquibase springboot application 【发布时间】:2021-08-28 02:50:21 【问题描述】:参考 - LiquiBase problem , class path resource [db/changelog/db.changelog-master.yaml] cannot be resolved to URL because it does not exist
我面临与上述类似的问题,但是建议的解决方案已经存在于我的配置中。
例外 - Liquibase 无法启动,因为在 'classpath:/db/changelog/db.changelog-master.yaml
中找不到任何更改日志这是我的 application.yml 文件。它已经有了春天:我还需要做什么才能摆脱 master.yaml 的这个错误
弹簧: 液基: 更改日志:类路径:liquibase/v2/changelog.yml 启用:真
【问题讨论】:
看看这篇文章here。可能会有所帮助。 【参考方案1】:从上面的消息Exception - Liquibase failed to start because no changelog could be found
看来,liquibase 无法找到更改日志文件。我建议在属性文件中添加更改日志文件 oath。查看this doc了解更多详情。
【讨论】:
以上是关于运行 Liquibase springboot 应用程序时 master.yaml 异常的主要内容,如果未能解决你的问题,请参考以下文章
运行 Liquibase springboot 应用程序时 master.yaml 异常
运行 Spring Boot 集成测试时出现 Liquibase 问题
JAVA SpringBoot:在 Docker 中,liquibase 插件运行时出现错误并且不执行更改日志
如果运行 spring boot 并让 liquibase 自动执行迁移,则 Liquibase databasechangelog 表存储相对路径