使用mui进行上拉加载

前台JSP代码:





后台java代码:

public static void pageAffairs(Integer pagesize,Integer currentpage){
        StringBuilder hql = new StringBuilder(" from CurrentAffairs where isShow = 1 order by createTime desc ");
        List currentAffairs = CurrentAffairs.find(hql.toString()).fetch(currentpage, pagesize);
        Long count = CountrysideTour.count(hql.toString());
        renderJSON(ConvertUtil.convertMap(count, currentpage, currentAffairs));
    }

你可能感兴趣的:(jsp)