报错-->Parameter 'name' not found. Available parameters are [1, 0, param1, param2]测试
百度找到这篇文章完成修改 http://blog.csdn.net/w86440044/article/details/29363067spa
我以前写的操做类是和博主同样,是这样的:.net
1 // 登陆·查询 2 @Select("select * from t_users where uname=#{name} and pswd=#{pswd}") 3 public Users findByNP(String name, String pswd);
结果测试时弹出上面报错,按博主方法修改后:code
1 // 登陆·查询 2 @Select("select * from t_users where uname=#{0} and pswd=#{1}") 3 public Users findByNP(String name, String pswd);
运行测试程序就正常了blog
结果:那个地方不能够用名称匹配,还有其它缘由吗?class