userRepository.save(……) 失败

作者: wanzixin创建于 2020年9月9日更新于 2020年9月9日

我使用的是 postgersql 数据库,最后为什么插入失败呢?是因为 id 主键没有设置吗?![](https://user-images.githubusercontent.com/43515397/92549371-a7559080-f28b-11ea-9b4b-621388408010.png)

内容来源: dyc87112/SpringBoot-Learning