Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自定义主键 #90

Closed
ChengSense opened this issue Sep 13, 2023 · 1 comment
Closed

自定义主键 #90

ChengSense opened this issue Sep 13, 2023 · 1 comment

Comments

@ChengSense
Copy link

ChengSense commented Sep 13, 2023

版本升级到2.1.1。自定定义主键报错,数据已经插入数据库。#69 已经解决这个问题,能否给个样例如何配置谢谢

@abel533
Copy link
Contributor

abel533 commented Sep 13, 2023

别用 Mapper 接口(这个接口指定了 id),用BaseMapper,然后在实体中通过 userGenerxxxx = true 指定主键字段使用自增即可。

@abel533 abel533 closed this as completed May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants