输入 org.flywaydb.core.api.callback.FlywayCallback 不存在
Type org.flywaydb.core.api.callback.FlywayCallback not present
将 Flyway 从 5.2.4 升级到
后
compile group: 'org.flywaydb', name: 'flyway-core', version: '6.5.0'
和 运行 spring 启动应用程序我收到错误:
Unsatisfied dependency expressed through method 'mapDao' parameter 0;
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration$FlywayConfiguration':
Unexpected exception during bean creation;
nested exception is java.lang.TypeNotPresentException:
Type org.flywaydb.core.api.callback.FlywayCallback not present
如果我不升级应用程序运行时出现警告:
Flyway upgrade recommended: PostgreSQL 12.3 is newer than this version of Flyway and support has not been tested.
我想解决
我应该如何配置应用程序,以便它使用 Flyway 6.5 和 Spring Boot 2.1.2.RELEASE?
org.flywaydb.core.api.callback.FlywayCallback
界面在 2018 年被 org.flywaydb.core.api.callback.Callback
取代,因此只需更新您的代码即可使用新界面。
它并没有真正回答问题,但在我的情况下是可以接受的。
我刚刚将 Spring 引导依赖项更新为 2.2.2,错误消失了。
无需更改应用程序源代码。
将 Flyway 从 5.2.4 升级到
后compile group: 'org.flywaydb', name: 'flyway-core', version: '6.5.0'
和 运行 spring 启动应用程序我收到错误:
Unsatisfied dependency expressed through method 'mapDao' parameter 0;
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration$FlywayConfiguration':
Unexpected exception during bean creation;
nested exception is java.lang.TypeNotPresentException:
Type org.flywaydb.core.api.callback.FlywayCallback not present
如果我不升级应用程序运行时出现警告:
Flyway upgrade recommended: PostgreSQL 12.3 is newer than this version of Flyway and support has not been tested.
我想解决
我应该如何配置应用程序,以便它使用 Flyway 6.5 和 Spring Boot 2.1.2.RELEASE?
org.flywaydb.core.api.callback.FlywayCallback
界面在 2018 年被 org.flywaydb.core.api.callback.Callback
取代,因此只需更新您的代码即可使用新界面。
它并没有真正回答问题,但在我的情况下是可以接受的。 我刚刚将 Spring 引导依赖项更新为 2.2.2,错误消失了。 无需更改应用程序源代码。