从某个程序中截取的一个示例代码:
List<User> users = userDao.selectAll(); //mybatis java orm
Iterator<User> iter = users.iterator();
while(iter.hasNext()){
User u = iter.next();
System.out.println("用户名:"+u.getUserName()+"密码:"+u.getPassword());
}