Mybatis commonly used labels

_ parameter

_ Parameter indicates the current parameter passed in. If there is only one parameter passed in during query, it is used_ parameter

If judgment

A large number of duplicate fields

Citation writing

foreach

1. Item represents the alias of each element in the collection during iteration,

2. Index specifies a name to indicate the position of each iteration in the iteration process,

3. Open indicates what the statement starts with,

4. Separator indicates what symbol is used as the separator between each iteration,

5. Close means what to end with,

set

Must be non empty judgment

If set is empty, an error will be reported

The above is a collection of commonly used mybatis labels introduced by Xiaobian. I hope it will be helpful to you. If you have any questions, please leave me a message and Xiaobian will reply to you in time. Thank you very much for your support for the programming tips website!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>