인피니티 스크롤1 [QueryDSL] Page와 Slice 본격적인 포스팅에 앞서 예전에 했던 프로젝트에서 인피니티 스크롤을 어떻게 구현했었는지 찾아보았다. ※ 혐오 주의 ※ scrollsize = 10; int start = (pageNum * scrollsize); int end = start + scrollsize; List list; List plist = new ArrayList(); if (categoryId == 100) {// 전체 게시물 출력 list = postDao.getPostByTempAndCategoryIdNotAndStatusNotOrderByCategoryIdAscCreateTimeDesc(temp, 102,0); if (list.size() >= start) { int newend = list.size() - start; if (n.. 2021. 4. 4. 이전 1 다음 728x90