方法传入两个参数
        try {
         Session session=getSession();
         Criteria crt=session.createCriteria("分页要查询的表");
         crt.setFirstResult((page-1)*pageSize);
         crt.setMaxResults(pageSize);
            List results = crt.list();
            
                       return results;
        } catch (RuntimeException re) {
                        throw re;
        }