Mybatis framework insert statement returns the primary key id

Artificial intelligence, zero-based entry! http://www.captainbed.net/inner

In some development scenarios, you need to get the primary key id of the data just inserted. Mybatis provides such a method: Annotate with @Options

This primary key is set, MySQL self-growth.

Guess you like

Origin blog.csdn.net/qq_35860138/article/details/103343385