You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if I understand correctly, but @GeneratedValue is a JPA annotation and it has no effect in MyBatis.
Also, using selectKey is not recommended for modern databases/drivers that supports JDBC 3+.
Use useGeneratedKeys="true" along with keyColumn and keyProperty.
If you still believe it is a MyBatis bug, please create and share a small repro project like these so that we can reproduce the issue on our end.
version 3.5.6
数据库类型 MYSQL8.0
之前怀疑是数据库的问题 但是同步对比正常环境的数据库 和 异常的数据库参数配置一致,并且从异常的数据库里的审计日志并未找到SELECT LAST_INSERT_ID()的相关报错日志。想请教下 后续该往什么方向继续排查这个错误
The text was updated successfully, but these errors were encountered: