当DB表中有任何更改时,我在 生产环境 中部署war时遇到异常 . 但是,如果我删除旧的数据库模式,那么它会创建一个没有任何错误的新数据库模式并成功部署 . 请在下面找到错误堆栈跟踪 .

ERROR 2026 --- [main] o.s.boot.SpringApplication:应用程序运行失败

org.springframework.context.ApplicationContextException:无法启动Web服务器;嵌套异常是java.lang.RuntimeException:org.springframework.beans.factory.BeanCreationException:在类路径资源中定义名称为'servletEndpointRegistrar'的bean时出错[org / springframework / boot / actuate / autoconfigure / endpoint / web / ServletEndpointManagementContextConfiguration $ WebMvcServletEndpointManagementContextConfiguration .class]:通过工厂方法实例化Bean失败;嵌套异常是org.springframework.beans.BeanInstantiationException:无法实例化[org.springframework.boot.actuate.endpoint.web.ServletEndpointRegistrar]:工厂方法'servletEndpointRegistrar'抛出异常;嵌套异常是org.springframework.beans.factory.UnsatisfiedDependencyException:在类路径资源中定义名称为'auditEventsEndpoint'的bean时出错[org / springframework / boot / actuate / autoconfigure / audit / AuditEventsEndpointAutoConfiguration.class]:通过方法表达的不满意的依赖关系' auditEventsEndpoint'参数0;嵌套异常是org.springframework.beans.factory.UnsatisfiedDependencyException:在URL中定义名称为'customAuditEventRepository'的bean时出错[jar:file:edds-0.0.1-SNAPSHOT.war!/ WEB-INF / classes!/ com / abc /repository/CustomAuditEventRepository.class]:通过构造函数参数0表示的不满意的依赖项;嵌套异常是org.springframework.beans.factory.BeanCreationException:创建名为'persistenceAuditEventRepository'的bean时出错:在设置bean时无法创建[org.springframework.orm.jpa.SharedEntityManagerCreator]类型的内部bean'(内部bean)#4a29f290' property'entalManager';嵌套异常是org.springframework.beans.factory.BeanCreationException:创建名为'(内部bean)#4a29f290'的bean时出错:在设置构造函数参数时无法解析对bean'entalManagerFactory'的引用;嵌套异常是org.springframework.beans.factory.BeanCreationException:在类路径资源[com / abc / config / LiquibaseConfiguration.class]中定义名为'liquibase'的bean时出错:init方法的调用失败;嵌套异常是liquibase.exception.ValidationFailedException:验证失败:1更改集check check config / liquibase / changelog / 00000000000000_initial_schema.xml :: 00000000000001 :: jhipster was:7:bad568f95f66bc24e44b08f57da8fdcc但现在是:7:b4267dbaf1321e0d963c884d318a008e

在开发时我使用mvn liquibase:diff修复了这个问题,但是在部署战争时不确定如何使用它 .