SpringBoot FlyWay报错:Detected applied migration not resolved locally:
项目是SpringBoot,使用FlyWay做数据库版本控制。
需要连接本地数据库,在新建本地数据库,导入数据后,启动工程,发现如下报错:
这是因为导入数据库包含flyway_schema_history表,所以本地运行时出现版本不一致报错。
解决方法:
1.mvn flyway:clean,这一步会清空现有数据。
2.确保application.yml中,开启flyway。
3.启动项目,完成flyway_schema_history表初始化,启动完成后备份flyway_schema_history表
4.导入数据,此时flyway_schema_history表会被更新为导入数据的版本
5.导入成功后,删除flyway_schema_history表,将备份的flyway_schema_history表替换
6.再次启动应用,Success!
SpringBoot FlyWay报错:Detected applied migration not resolved locally:相关推荐
- Flyway 报错:Detected applied migration not resolved locally:2和执行脚本错误
目录 一.前言 1.Flyway简介 2.flyway依赖包 3.使用flyway的好处 二.问题分析 1.Flyway 报错:Detected applied migration not resol ...
- springboot启动报错:Unregistering JMX-exposed beans on shutdown
环境 1,maven 3.5.0 2,eclipse 4.7.1 3,spring boot 1.5.9.RELEASE springboot启动报错 按照spring 用户手册创建新的spring ...
- SpringBoot启动报错:Parameter 0 of method hmset in com.qcby.rbac.util.RedisUtils required a bean of type
SpringBoot启动报错,报错信息如下: 报错是由于A类中定义了含参数的构造函数,Spring自动构造和注入时未为该Bean传入参数,引起报错. 查了很多资料,最后发现,我是因为注释的时候没有把@ ...
- 【springboot】报错Resolved [org.springframework.http.converter.HttpMessageNotWritableException: No conve
[参考] https://www.cnblogs.com/sunupo/p/11905763.html [springboot控制台报错:] WARN 10028 - [nio-8181-exec-3 ...
- 启动Spring项目报错,Springboot启动报错 Disconnected from the target VM 解决过程
启动Spring项目报错,Springboot启动报错 Disconnected from the target VM 解决过程 大概率是缺少了一下依赖 <dependency><g ...
- IDEA springboot启动报错java.lang.UnsatisfiedLinkError: no tcnative-1 in java.library.path
IDEA springboot启动报错: java.lang.UnsatisfiedLinkError: no tcnative-1 in java.library.path: [D:\Java\bi ...
- SpringBoot启动报错Could not resolve placeholder ‘XXX.XXX‘ in value
SpringBoot启动项目时报错: Exception encountered during context initialization - cancelling refresh attempt: ...
- springboot启动报错`CommandLineWrapper` is ill-suited for launching apps on Java 9+.
项目从jdk8升级到jdk11后springboot启动报错,查询多方资料未果 报错信息: `CommandLineWrapper` is ill-suited for launching apps ...
- SpringBoot项目报错解决:“Error starting ApplicationContext. To display the conditions report re-run ...”
SpringBoot项目报错:Error starting ApplicationContext. To display the conditions report re-run your appli ...
最新文章
- python翻译程序-Python桌面应用案例:TXT文档翻译工具(源代码)
- CSS_伪元素_伪类
- Python学习 Part6:错误和异常
- index 把@前的截断作为
- reg类型变量综合电路_Verilog中reg型变量的综合效果(待补充)
- 北理工计算机 应用基础在线作业,16秋北理工《计算机应用基础》在线作业
- 测试开发之缺陷报告上篇
- Kotlin入门(28)Application单例化
- 8 个最好的 jQuery 树形 Tree 插件
- 在CDH sandbox中安装并测试livy
- 进阶01Object类
- 半导体物理学——(三)半导体中载流子的统计分布
- NR的SSB子载波间隔讨论——为何无60kHz
- 这些好玩的例子,希望你也能喜欢
- DeepLearning论文阅读笔记(一):Cyclical Learning Rates for Training Neural Networks(CLR)
- C语言鼠标病毒,鼠标也中毒Windows系统中鼠标乱动是否中了病毒
- AndroidStudio运行模拟器--夜神
- vant 底部导航栏 中间凸起
- 美国互联网影视业的盈利模式
- 怎么把人物模型走路、跑步动画拼接起来
热门文章
- 360浏览器html文件无图标,360浏览器在网页的右键里不显示审查元素怎么了
- sql grop by having order by 的用法
- UPC Imputation 树型dp
- 四管前级怎么去掉高低音音调_烧友自荐:2SK304四管前级制作难点浅析
- java 获取当前第几周_java 计算当前日期是今年的第几周 和 该周的开始日期及结束日期...
- 链接提交提示安全验证,网站辅助快排不行了吗?
- linux的应用界面设计,技术|Xperience UI 设计理念:优雅的 Linux 桌面设计欣赏
- Unity3d C#解决transform.LookAt朝向前后翻转问题(含源码)
- 不止谷歌,微软也有自己的眼镜计划?!
- 视觉伺服控制工具Visual Servoing Platform---VISP(7)----vpServo这个看懂了就会用VISP了,很简单