【问题标题】:Exception - null value in column "id" of relation "technologies" violates not-null constraint (PostgreSQL)异常 - 关系 \"technologies\" 的列 \"id\" 中的空值违反了非空约束 (PostgreSQL)
【发布时间】:2022-11-25 06:49:00
【问题描述】:

enter image description here 关联技术id列空值异常违反非空约束

我试图通过 swagger-ui 向数据库添加一项新技术,但我在“id”列中得到了一个空值异常,即使它是主键并且是自动生成的。 [[enter image description here](https://i.stack.imgur.com/NxrtD.png)](https://i.stack.imgur.com/SRM9L.png)

【问题讨论】:

标签: java spring postgresql spring-boot


【解决方案1】:

试着把它做成大号ong 而不是 int。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-08-08
    • 1970-01-01
    • 1970-01-01
    • 2020-03-15
    • 1970-01-01
    • 2021-08-06
    • 2021-01-08
    • 1970-01-01
    相关资源
    最近更新 更多