问题描述:SQL语句错误,错误的使用了SQL关键字selectMultiParam
解决问题:将关键字改为其他的命名如;selectmultiparam...
public void testMultiParam(){ SqlSession sqlSession = Mybatistool.getsqlSession(); studentDao mapper = sqlSession.getMapper(studentDao.class); List<student> students = mapper.selectMultiParam("张飞",45); for (student stu: students ){ System.out.println(stu); } sqlSession.close(); }
切记不要受用到sql关键字命名!!!!!!!!!!!!!!!