集成flyway反复报错:Found non-empty schema(s) "PUBLIC" but no schema history table.

根据错误信息在application.yml文件中加入:
spring: 
    flyway: 
       baseline-on-migrate: true
    清理flyway缓存。执行mvn flyway:clean,然后再执行mvn flyway:migrate即可。

发表评论 / Comment

用心评论~