pg数据库报错信息
Caused by: java.sql.BatchUpdateException: Batch entry 0 insert into base_user (created_by, created_date, ja_user_id,
lang_key, last_name, login, position,
reset_date, reset_key, id) values
('liuxianwen', '2022-10-13 04:11:39.759776+00', 'liuxianwen', '2022-10-13 04:11:39.759776+00',
'TRUE', NULL, NULL, NULL, NULL,
'430100', '$2NULL, 'FALSE',
NULL, '2022-10-13 04:11:39.71006+00', 'FViOpnuMEtwRBKWZR86A', NULL, 'local_user', 1762401) was aborted: ERROR: cannot insert into column "id"
Detail: Column "id" is an identity column defined as GENERATED ALWAYS.
Hint: Use OVERRIDING SYSTEM VALUE to override. Call getNextException to see other errors in the batch.
at org.postgresql.jdbc.BatchResultHandler.handleError(BatchResultHandler.java:169)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2286)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:521)
at org.postgresql.jdbc.PgStatement.internalExecuteBatch(PgStatement.java:8
在数据库执行:ALTER TABLE base_user ALTER COLUMN id DROP IDENTITY IF EXISTS