java - 如何使用集成测试编写 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
怎么可能修复?
解决方案
推荐阅读
- python - Pytest bdd 错误“scenario_wrapper() 缺少 1 个必需的位置参数:'request'”
- zabbix - 如何计算 s3 存储大小并通过电子邮件发送汇总?
- javascript - 如何根据父级宽度创建子级
- android - Android 10以上手机如何开启WiFi热点
- python-3.x - 在多次运行代码并获得随机结果后是否可以找到 random.seed 值
- c# - 当应用程序位于 Azure 中时,如何使用 MSAL 进行身份验证?
- blockchain - 如何获取给定代币的所有历史 Uniswap/Pancakeswap 交易
- python-3.x - 有什么方法可以一步一步在图例中添加标签吗?
- python - Manipulate ordering/sorting of Multirow columns in a pandas DataFrame
- python - Python Matplotlib - 如何绘制 df 的前 20 名?