글번호 | 1143 |
작성자 | 허진경 (나자바바) |
작성일 | 2022-09-29 11:10:43 |
제목 | [Re]게시판 소스코드 수정내용 |
내용 | 페이징 처리에서 두 번째 페이지부터 글이 하나 더 나오는 오류가 있습니다. BoardService.java 파일에서 selectArticleListByCategory() 메서드와 searchListByContentKeyword() 메서드에서 int start = (page-1)*10;을 int start = (page-1)*10 + 1;로 수정하고 start+10을 start+9로 수정해 주세요. |
첨부파일 | BoardService.java (4,739byte) |