There are several situations:
1. The parameter is the base type or package type.
Parameter comment: #{any character}
2. The parameter is an object.
Parameter comments are: #{Object Properties}
-
- Using Annotations (@Param)
1. The parameter is the base type or package type.
parameter Comment: #{annotation name} | #{param1}
2. The parameter is an object.
Parameter comment is: #{annotation name. Object Properties} | #{param1. Object Properties}
1. The parameter is the base type or package type.
Parameter comment: #{parameter position [0..n-1]} | #{param[1..n]}
2. The parameter is an object.
Parameter comments are: #{parameter position [0..n-1]. Object Properties} | #{param[1..n]. Object Properties}
1. The parameter is the base type or package type.
Parameter comment: #{Note name} | #{param[1..n]}
2. The parameter is an object.
parameter comments are: #{annotation name. Object Properties} | #{param[1..n]. Object Properties}
Summarize:
1. The role of annotation @param is to set parameter aliases. The set parameter can only be accessed by ' #{param[1..n ' or ' #{note alias} ' or #{annotation name. Object Properties} to access
2. For multiple parameters, use the ' #{parameter position [0..n-1]} ' | ' #{param[1..n]} ' to access parameters
The test code is too messy to be posted.
Parameters of interfaces in mybatis and mapping relationships in mapper files