当前位置:网站首页>Usegeneratedkeys=true configuration

Usegeneratedkeys=true configuration

2022-06-13 06:16:00 Ming ruoxiao River

Springboot in Mybatis The configuration file Mapper Parameters
useGeneratedKeys=“true” keyProperty=“id”
useGeneratedKeys Set to true when , Indicates if the inserted table id Take the auto increment column as the primary key , allows JDBC Support automatic generation of primary key , And can automatically generate the primary key id return .
useGeneratedKeys Parameters are only for insert The statement takes effect , The default is false;

原网站

版权声明
本文为[Ming ruoxiao River]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202270556300240.html