org.postgresql.util.PSQLException:在此结果集中找不到列名start_值
当spring启动应用程序启动时,我遇到了这个错误 [org.hibernate.engine.jdbc.env.internal.jdbconvironmentimpl]-可能 不从数据库中获取序列信息org.postgresql.util.PSQLException:在此结果集中找不到列名start_值,postgresql,spring-boot,hibernate,spring-data-jpa,Postgresql,Spring Boot,Hibernate,Spring Data Jpa,当spring启动应用程序启动时,我遇到了这个错误 [org.hibernate.engine.jdbc.env.internal.jdbconvironmentimpl]-可能 不从数据库中获取序列信息 org.postgresql.util.PSQLException:列名start_值不正确 在此结果集中找到 spring.jpa.properties.hibernate.dial=org.hibernate.dial.postgresql82dial Postgres DB版本=8.4
org.postgresql.util.PSQLException:列名start_值不正确 在此结果集中找到 spring.jpa.properties.hibernate.dial=org.hibernate.dial.postgresql82dial Postgres DB版本=8.4 JPA实体中的主键生成 @Id
@GeneratedValue(策略=GenerationType.SEQUENCE)
@列(unique=true,nullable=false,columnDefinition=“serial”)
私有整数id强> 序列已经在DB端创建,并且序列被配置为表中ID列的默认值 我用过不同的博士后方言,但仍然遇到同样的问题。
我想知道,这是应用程序的一个致命错误,对此错误有何解决办法?您可能使用的JDBC驱动程序无法与过时且不受支持的Postgres一起使用version@a_horse_with_no_name谢谢你的快速回复,我查一下it@hazzy1986你的数据库序列名是什么?你能不能也显示一下你的表的ddl。@一个没有名字的问题解决了,我安装了postgres版本12。非常感谢。