postgresql 使用mybatis 中的useGeneratedKeys 获取不到主键

解决方案:
在insert标签中 完整配置这三个参数就可以解决:keyProperty="id" useGeneratedKeys="true" keyColumn="id"

  
  ......

你可能感兴趣的:(postgresql 使用mybatis 中的useGeneratedKeys 获取不到主键)