首页 > 解决方案 > 如何使用集成测试编写 Docker

问题描述

我下载了 Docker,然后在我用 Java 编写的 Intelij Idea 中运行集成测试。每个集成测试都有同样的问题:

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.api.FlywayException: Validate failed: 
Detected applied migration not resolved locally: 1.1
Detected applied migration not resolved locally: 1.2
Detected applied migration not resolved locally: 1.3
Detected applied migration not resolved locally: 1.4
Detected applied migration not resolved locally: 1.5
Detected applied migration not resolved locally: 2.1
Detected applied migration not resolved locally: 3.1
Detected applied migration not resolved locally: 3.2
Detected applied migration not resolved locally: 9.1
Detected applied migration not resolved locally: 10.1
Detected applied migration not resolved locally: 10.2
Detected applied migration not resolved locally: 11.1
Detected applied migration not resolved locally: 11.2
Detected applied migration not resolved locally: 11.3
Detected applied migration not resolved locally: 11.4
Detected applied migration not resolved locally: 11.5

怎么可能修复?

标签: javadockerintegration-testingflyway

解决方案


推荐阅读