我通过子生成器修改了现有的学生实体,然后覆盖了所有和之后运行的gradlew命令,但是我得到了folling错误,出了什么问题?

问题描述 投票:0回答:1

2017-12-28 15:40:31.813 ERROR 5060 --- [tapp-Executor-1] igjcliquibase.AsyncSpringLiquibase:Liquibase无法正常启动,您的数据库尚未就绪:验证失败:1更改设置检查和配置/ liquibase /changelog/20171228063150_added_entity_Student.xml::20171228063150-1::jhip ster was:7:1e76a424cb8d1fd8f33d27559cee9133但现在是:7:a69d676fb7b3d1b37c22d109340b7c2b

liquibase.exception.ValidationFailedException:验证失败:1更改集check sum config / liquibase / changelog / 20171228063150_added_entity_Student.xml :: 20171228063150-1 :: jhip ster was:7:1e76a424cb8d1fd8f33d27559cee9133但现在是:7:a69d676fb7b3d1b37c22d109340b7c2b

    at liquibase.changelog.DatabaseChangeLog.validate(DatabaseChangeLog.java:266)
    at liquibase.Liquibase.update(Liquibase.java:210)
    at liquibase.Liquibase.update(Liquibase.java:192)
    at liquibase.integration.spring.SpringLiquibase.performUpdate(SpringLiquibase.java:431)
    at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:388)

    at io.github.jhipster.config.liquibase.AsyncSpringLiquibase.initDb(AsyncSpringLiquibase.java

:82)在io.github.jhipster.config.liquibase.AsyncSpringLiquibase.lambda $ afterPropertiesSet $ 0(Asyn cSpringLiquibase.java:64)at io.github.jhipster.async.ExceptionHandlingAsyncTaskExecutor.lambda $ createWrappedRunnable $ 1(ExceptionHandlingAsyncTaskExecutor.java:66 )java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)at java.lang.Thread.run(Thread.java: 748)

怎么了 ?

spring-boot jhipster liquibase liquibase-hibernate jhipster-registry
1个回答
2
投票

这是一个常见的问题。快速解决方案。只需删除数据库并使jhipster再次创建它。 Liquidbase有自己的表来检查一致性,因为你改变了它不一致的东西。如果这不是生产环境,最快的解决方案是重新创建。如果它是一个生产环境。检查生成的Liquidbase文件校验和等。

希望能帮助到你

© www.soinside.com 2019 - 2024. All rights reserved.