【项目实战】PSQLException: ERROR: column “xxx“ does not exist
一、异常内容
### Cause: org.postgresql.util.PSQLException: ERROR: column "parent_id" does not exist
位置:72
; bad SQL grammar []; nested exception is org.postgresql.util.PSQLException: ERROR: column "parent_id" does not exist
位置:72
at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.doTranslate(SQLStateSQLExceptionTranslator.java:101)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:70)
二、异常说明
典型的某表中某字段column ,column 名叫”parent_id” 的不存在。
三、异常解决
定位某表。增加对应的字段column 即可,新增时注意,对应下实体的数据类型。
还没有评论,来说两句吧...