Error-->parameter ' name ' not found. Available parameters is [1, 0, param1, param2]
Baidu found this article to complete the modification http://blog.csdn.net/w86440044/article/details/29363067
The operations I wrote earlier were like the bloggers, like this:
1 // Login/Enquiry 2 @Select ("select * from T_users where uname=#{name} and PSWD=#{PSWD}")3 Public Users FINDBYNP (string name, string pswd);
The results of the test pop up the above error, according to the Blogger method modified:
1 // Login/Enquiry 2 @Select ("select * from T_users where uname=#{0} and Pswd=#{1}")3 public users FINDBYNP (string name, string pswd);
Running the test program is normal.
Result: The place can not be used to match the name, there are other reasons?
Beginner Java9: Learn mybatis times wrong: Parameter ' name ' not found. Available parameters is [1, 0, param1, param2]