Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring boot 键入org.flywaydb.core.api.callback.FlywayCallback不存在_Spring Boot_Flyway - Fatal编程技术网

Spring boot 键入org.flywaydb.core.api.callback.FlywayCallback不存在

Spring boot 键入org.flywaydb.core.api.callback.FlywayCallback不存在,spring-boot,flyway,Spring Boot,Flyway,将Flyway从5.2.4升级至 compile group: 'org.flywaydb', name: 'flyway-core', version: '6.5.0' 运行spring boot应用程序时,我发现了错误: Unsatisfied dependency expressed through method 'mapDao' parameter 0; nested exception is org.springframework.beans.factory.BeanCreati

将Flyway从5.2.4升级至

compile group: 'org.flywaydb', name: 'flyway-core', version: '6.5.0' 
运行spring boot应用程序时,我发现了错误:

 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?

2018年,
org.flywaydb.core.api.callback.FlywayCallback
界面被替换为
org.flywaydb.core.api.callback.callback
,因此,只需更新您的代码以使用新的界面。

它并不能真正回答问题,但在我的情况下是可以接受的。 我刚刚将Spring引导依赖项更新为2.2.2,错误已经消失了。
不需要更改应用程序源代码。

应用程序源代码中没有与Flyway相关的单行代码。似乎是spring解决了这个问题。