IT/ETC (70) 썸네일형 리스트형 Controller 1. BoardController 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 package com.test.taewon.controller; import javax.servlet.http.HttpServletRequest; import org.spri.. Service interface + ServiceImpl class 1. a. Board interface 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 package com.test.taewon.model.service; import java.util.List; import com.test.taewon.model.common.Pagination; import com.test.taewon.model.dto.Board; public interface BoardService { List selectAll(Pagination pagination); void insert(Board board); Board select(Board board); void delete(Board board); void update(Board boar.. Paging 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 package com.test.taewon.model.common; import lombok.Data; @Data public class Pagination { private int listSize = 10; //한 페이지당 보여질 리스트 개수 private int rangeSize = 10; //한 페이지 범위에 보여질 페이지의 개수 private int page; //현재 목록의 페이지 번호 private int range; //각 페이지 범위 시작 번호 priv.. Mapper interface + Mapper xml 1. BoardMapper 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 package com.test.taewon.model.dao; import java.util.List; import org.apache.ibatis.annotations.Param; import com.test.taewon.model.common.Pagination; import com.test.taewon.model.dto.Board; public interface BoardMapper { List selectAll(Pagination pagination); void insert(Board board); Board select(Board board); void.. 게시판 DTO DTO/bean/vo 1. 게시판 board 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 package com.test.taewon.model.dto; import java.sql.Timestamp; import com.test.taewon.model.common.Pagination; import lombok.Data; @Data public class Board extends Pagination{ private int boardId; public String bUsername; private String bTitle; private String bContent; private Timestamp bDate; private int bHit; p.. Caleb Curry's Database design course I wanted to create a mini project where i designed from start to end by myself since during my time in the bootcamp, I always worked with others on all of my projects. For past week, I started studying algorithm because I just finished up my bootcamp courses about a month ago, and took two weeks to prepare for an korea engineer exam(?) and finally had some time to study things I wanted to study .. 이전 1 ··· 6 7 8 9 다음