mybatis parameter handling

 mybatis
parameter processing A

single parameter does not do any processing
, multiple parameters will be encapsulated into a map (# is to go to the map to get the value of the key, or the parameter index can also be used)
For POJO, use #{attribute name} For
Map, use #{key }

${} is the direct replacement of sql
#{} is the opinion of the parment, you can set the jdbcType to handle the database type 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325499506&siteId=291194637
Recommended