Annotation Type Param

public @interface Param
The annotation that specify the parameter name.

How to use:

 public interface UserMapper {
   @Select("SELECT id, name FROM users WHERE name = #{name}")
   User selectById(@Param("name") String value);
Clinton Begin
  • Required Element Summary

    Required Elements
    Modifier and Type Required Element Description
    String value
    Returns the parameter name.
  • Element Details

    • value

      String value
      Returns the parameter name.
      the parameter name