为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

Helenr 2023-03-02 15:02:42
我正在使用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])
查看完整描述

2 回答

?
HUH函数

TA贡献1836条经验 获得超4个赞

此问题已在 Javers 5.6.2 中修复



查看完整回答
反对 回复 2023-03-02
?
森栏

TA贡献1810条经验 获得超5个赞

此问题尚未修复,在 6.9.1 版本中也很容易看到。



查看完整回答
反对 回复 2023-03-02
  • 2 回答
  • 0 关注
  • 264 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信