解决办法:,参数items 没有找到,可用参数 list,将items 修改成list这里才能接受得到controller 传过来的集合
1.在UserMapper里

2.在UserMapper.xml里

3.测试类
@Test public void show() { SqlSession sqlSession = Util.opeSession();
UserMapper mapper = sqlSession.getMapper(UserMapper.class); List list = new
ArrayList(); list.add(1); list.add(2); List<SysUser> sysUsers =
mapper.queryCustomer2(list); for (SysUser sysUser : sysUsers) {
System.out.println(sysUser); } }