Caused by: org.postgresql.util.PSQLException: ERROR: null value in column "task_id" violates not-null constraint
详细:Failing row contains
(null, 11, 2, 1, 2, 0, 1, 项目, 2021-09-26 19:07:26, 0, 任务中,异步流程,
调用工作流..., null, 3, 0, null).
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2533)
在使用jpa保存对象的时候,提示主键ID值为空,但是我通过序列获取了nextval,是有值的,于是去看了下序列与表主键是否关联,结果不出所料,序列与表未进行关联绑定,导致了这个异常出现.