https://www.cnblogs.com/super-chao/p/7722411.html
1.如果两种不同类型的参数传入,parameterType可以不写,直接获取#{0},#{1}就可以传入参数(注解方式不能用)
2.传入参数只有一个的时候 随便写 ---作为占位符使用
3.或者使用@Param 例子:首先传入的参数要给定参数说明:
void save(@Param("username") String username,@Param("password") String password)
insert into user values (#{username},#{password})
如果不给设置@Param,mybatis会认为#{username}和#{password}是对象String username的属性,