项目是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:相关推荐

  1. Flyway 报错:Detected applied migration not resolved locally:2和执行脚本错误

    目录 一.前言 1.Flyway简介 2.flyway依赖包 3.使用flyway的好处 二.问题分析 1.Flyway 报错:Detected applied migration not resol ...

  2. 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 ...

  3. SpringBoot启动报错:Parameter 0 of method hmset in com.qcby.rbac.util.RedisUtils required a bean of type

    SpringBoot启动报错,报错信息如下: 报错是由于A类中定义了含参数的构造函数,Spring自动构造和注入时未为该Bean传入参数,引起报错. 查了很多资料,最后发现,我是因为注释的时候没有把@ ...

  4. 【springboot】报错Resolved [org.springframework.http.converter.HttpMessageNotWritableException: No conve

    [参考] https://www.cnblogs.com/sunupo/p/11905763.html [springboot控制台报错:] WARN 10028 - [nio-8181-exec-3 ...

  5. 启动Spring项目报错,Springboot启动报错 Disconnected from the target VM 解决过程

    启动Spring项目报错,Springboot启动报错 Disconnected from the target VM 解决过程 大概率是缺少了一下依赖 <dependency><g ...

  6. 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 ...

  7. SpringBoot启动报错Could not resolve placeholder ‘XXX.XXX‘ in value

    SpringBoot启动项目时报错: Exception encountered during context initialization - cancelling refresh attempt: ...

  8. springboot启动报错`CommandLineWrapper` is ill-suited for launching apps on Java 9+.

    项目从jdk8升级到jdk11后springboot启动报错,查询多方资料未果 报错信息: `CommandLineWrapper` is ill-suited for launching apps ...

  9. SpringBoot项目报错解决:“Error starting ApplicationContext. To display the conditions report re-run ...”

    SpringBoot项目报错:Error starting ApplicationContext. To display the conditions report re-run your appli ...

最新文章

  1. lvs为何不能完全替代DNS轮询--转
  2. c语言case后加3 5,10.程序流程控制:switch-case
  3. php中url问题,PHP中URL域的解析
  4. 【学术相关】以前写过水论文怎么办?
  5. Poj 3246 Balanced Lineup(线段树基础)
  6. Lucene5.5.4入门以及基于Lucene实现博客搜索功能
  7. LeetCode 658. 找到 K 个最接近的元素(二分查找)
  8. Android打开谷歌应用,谷歌确认 Android 12 新增剪贴板访问提醒,将在 Beta 2 上线
  9. LeetCode 28. 实现 strStr() (java)
  10. JetBrains 2020 Java调查报告:中国开发者使用比例最高,Java 8最受欢迎
  11. Matlab常用快捷键
  12. 智驾小车|如何给树莓派系统接入摄像头模块
  13. 28-地理空间数据云下载
  14. mysql front 连接类型,MySQL-Front如何连接数据库
  15. python实现堆栈 后进先出 LIFO
  16. Python制作自己的第一人称射击游戏
  17. Global Malmquist-Luenberger 指数分解及matlab应用,文后有网盘链接
  18. 开源是什么以及如何做
  19. html5 input搜索框样式修改,修改input搜索框默认叉号的样式为自定义图片
  20. D-S证据理论的简要介绍

热门文章

  1. OSPF高级特性—Distribute-list过滤、修改接口OSPF优先级配置、OSPF—被动接口详解、修改参考带宽值
  2. 微信小程序登录 返回 -41003
  3. Not an managed type
  4. 小游戏“程序猿大战产品*那啥”
  5. 谈谈产品与运营之 - 润物细无声
  6. AWS部署大淘客CMS
  7. 纯干货分享,2021年阿里巴巴社招面试题总结,本人上周已成功入职!
  8. 科技园区及科研实验室智能消防安全管控系统
  9. 张朝阳对话俞敏洪:谈宇宙、谈焦虑、谈创业、谈退休、谈人生
  10. vue的keep-alive的正确用法