本文介绍了键入org.flywaydb.core.api.callback.FlywayCallback不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
将Flyway从5.2.4升级到
After upgrading Flyway from 5.2.4 to
compile group: 'org.flywaydb', name: 'flyway-core', version: '6.5.0'
并运行spring boot应用程序时出现错误:
and running the spring boot app I got the error:
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
如果我不升级,该应用程序将运行并显示警告:
If I don't upgrade the app runs with a warning:
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.2RELEASE?
How should I configure the app so that it uses Flyway 6.5 and Spring Boot 2.1.2.RELEASE ?
推荐答案
它并不能真正回答问题,但是在我的情况下是可以接受的.我刚刚将Spring Boot依赖关系更新为2.2.2,该错误已消失.无需更改应用程序源代码.
It doesn't really answer the question but it's acceptable in my situation.I've just updated Spring Boot dependency to 2.2.2 and the error has gone.No changes in the app source code were needed.
这篇关于键入org.flywaydb.core.api.callback.FlywayCallback不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!