java数据库执行迁移报错Error creating bean with name 'flywayIn

时间:2022-05-24 07:17:26

报错原因

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: Migration checksum mismatch for migration version 1.0.1
-> Applied to database : 191603428
-> Resolved locally    : -975490752

解决方案:

数据库中字段值改成: Resolved locally    : -975490752

java数据库执行迁移报错Error creating bean with name 'flywayIn

来源:站长