You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

通过FlywayConfigurationCustomizer配置Flyway脚本路径疑似被覆盖问题咨询

通过FlywayConfigurationCustomizer配置Flyway脚本路径疑似被覆盖问题咨询

我按照相关指南的描述添加了一个Bean,用来自定义Flyway迁移脚本的存放路径,代码如下:

@Singleton
public static class MyCustomizer implements FlywayConfigurationCustomizer {
    @Override
    public void customize(FluentConfiguration configuration) {
        configuration.locations("db/migration", "otherlocation/migration");
    }
}

实际运行时这个Bean确实会被执行,但看起来我设置的路径配置之后又被覆盖了?

想问问大家,通过这种方式修改Flyway的脚本路径到底可行吗?有没有人这么配置成功过?

备注:内容来源于stack exchange,提问作者drone

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.17 11:58:04