引起:org.postgresql.util.PSQLException:错误

我正在使用Spring Data JPA 和 Javers示例。使用干净的数据库,当我第一次运行项目然后它工作时,当我第二次运行 hibernate:ddl-auto: create 时,它失败并出现以下错误。

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'jpaJaversApplication': Unsatisfied dependency expressed through field 'javers'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'JaversFromStarter' defined in class path resource [org/javers/spring/boot/sql/JaversSqlAutoConfiguration.class]: Invocation of init method failed; nested exception is org.polyjdbc.core.exception.SchemaManagerException: [DDL_ERROR] Failed to run DDL:

CREATE TABLE jv_commit (

commit_pk BIGINT NOT NULL,

author VARCHAR(200),

commit_date TIMESTAMP,

commit_date_instant VARCHAR(30),

commit_id NUMERIC(22,2),

CONSTRAINT jv_commit_pk PRIMARY KEY(commit_pk)

    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:596) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]

    at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]

    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1411) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.8.RELEASE.jar:5.1.8.RELEASE]

)

Helenr
浏览 272回答 2
2回答

HUH函数

此问题已在 Javers 5.6.2 中修复

森栏

此问题尚未修复,在 6.9.1 版本中也很容易看到。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java